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:
parent
1801b5eaf4
commit
431f3bd857
@ -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!");
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user