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

VCAI: use cannotFulfillGoalException instead of runtime_error

This commit is contained in:
ArseniyShestakov 2015-03-09 17:09:34 +03:00
parent 1801b5eaf4
commit 431f3bd857

View File

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