1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

VCAI: always clear teleport channel probing list if we lost hero

This commit is contained in:
ArseniyShestakov 2015-03-10 03:23:36 +03:00
parent 431f3bd857
commit 11d4b4291c

View File

@ -1694,6 +1694,7 @@ bool VCAI::moveHeroToTile(int3 dst, HeroPtr h)
if(!h) if(!h)
{ {
lostHero(h); lostHero(h);
teleportChannelProbingList.clear();
if (status.channelProbing()) // if hero lost during channel probing we need to switch this mode off if (status.channelProbing()) // if hero lost during channel probing we need to switch this mode off
status.setChannelProbing(false); status.setChannelProbing(false);
throw cannotFulfillGoalException("Hero was lost!"); throw cannotFulfillGoalException("Hero was lost!");