Explorar o código

remove duplicate call

already performed in CPathfinderHelper constructor
Andrey Filipenkov %!s(int64=2) %!d(string=hai) anos
pai
achega
aae9e70771
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  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);