Pārlūkot izejas kodu

Merge pull request #3146 from vcmi/fix-3006

#3006 - fix starting move from teleport
Andrii Danylchenko 1 gadu atpakaļ
vecāks
revīzija
060079cfc6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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