Browse Source

remove duplicate call

already performed in CPathfinderHelper constructor
Andrey Filipenkov 2 years ago
parent
commit
aae9e70771
1 changed files with 0 additions and 2 deletions
  1. 0 2
      server/CGameHandler.cpp

+ 0 - 2
server/CGameHandler.cpp

@@ -2342,8 +2342,6 @@ bool CGameHandler::moveHero(ObjectInstanceID hid, int3 dst, ui8 teleporting, boo
 
 	//check if destination tile is available
 	auto pathfinderHelper = std::make_unique<CPathfinderHelper>(gs, h, PathfinderOptions());
-
-	pathfinderHelper->updateTurnInfo(0);
 	auto ti = pathfinderHelper->getTurnInfo();
 
 	const bool canFly = pathfinderHelper->hasBonusOfType(Bonus::FLYING_MOVEMENT);