1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix crash on portal teleport when it's 1st action in movement (#491)

This commit is contained in:
Dydzio
2018-09-16 16:01:36 +02:00
committed by Alexander Shishkin
parent cca46e311d
commit 57b687a094

View File

@@ -2714,6 +2714,7 @@ void CPlayerInterface::doMoveHero(const CGHeroInstance * h, CGPath path)
destinationTeleport = ObjectInstanceID(); destinationTeleport = ObjectInstanceID();
destinationTeleportPos = int3(-1); destinationTeleportPos = int3(-1);
} }
if(i != path.nodes.size() - 1)
sh = CCS->soundh->playSound(CCS->soundh->horseSounds[currentTerrain], -1); sh = CCS->soundh->playSound(CCS->soundh->horseSounds[currentTerrain], -1);
continue; continue;
} }