Parcourir la source

fix path not updated after cheat

Laserlicht il y a 4 mois
Parent
commit
17def4d853
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      client/CPlayerInterface.cpp

+ 1 - 0
client/CPlayerInterface.cpp

@@ -498,6 +498,7 @@ void CPlayerInterface::heroMovePointsChanged(const CGHeroInstance * hero)
 	if (makingTurn && hero->tempOwner == playerID)
 		adventureInt->onHeroChanged(hero);
 	invalidatePaths();
+	GAME->interface()->localState->verifyPath(hero);
 }
 void CPlayerInterface::receivedResource()
 {