Skip to content

Commit

Permalink
Fix crash on portal teleport when it's 1st action in movement (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
dydzio0614 authored and alexvins committed Sep 16, 2018
1 parent cca46e3 commit 57b687a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/CPlayerInterface.cpp
Expand Up @@ -2714,7 +2714,8 @@ void CPlayerInterface::doMoveHero(const CGHeroInstance * h, CGPath path)
destinationTeleport = ObjectInstanceID();
destinationTeleportPos = int3(-1);
}
sh = CCS->soundh->playSound(CCS->soundh->horseSounds[currentTerrain], -1);
if(i != path.nodes.size() - 1)
sh = CCS->soundh->playSound(CCS->soundh->horseSounds[currentTerrain], -1);
continue;
}

Expand Down

0 comments on commit 57b687a

Please sign in to comment.