Browse Source

fix path not updated after cheat

Laserlicht 4 months ago
parent
commit
17def4d853
1 changed files with 1 additions and 0 deletions
  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()
 {