Explorar o código

#3006 - fix starting move from teleport

Andrii Danylchenko %!s(int64=2) %!d(string=hai) anos
pai
achega
91c04f4718
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/HeroMovementController.cpp

+ 1 - 1
client/HeroMovementController.cpp

@@ -359,7 +359,7 @@ void HeroMovementController::moveOnce(const CGHeroInstance * h, const CGPath & p
 	{
 		stopMovementSound();
 		logGlobal->trace("Requesting hero teleportation to %s", nextNode.coord.toString());
-		LOCPLINT->cb->moveHero(h, nextCoord, false);
+		LOCPLINT->cb->moveHero(h, h->pos, false);
 		return;
 	}
 	else