Răsfoiți Sursa

fix path not updated after cheat

Laserlicht 4 luni în urmă
părinte
comite
17def4d853
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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()
 {