VCAI: use cannotFulfillGoalException instead of runtime_error
This commit is contained in:
1 parent
1801b5eaf4
commit
431f3bd857
1 file changed
+1
-1
+1
-1
@@ -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!");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user