VCAI: use cannotFulfillGoalException instead of runtime_error

This commit is contained in:
ArseniyShestakov committed 2015-03-09 17:09:34 +03:00
1 parent 1801b5eaf4
commit 431f3bd857
1 file changed
+1 -1
+1 -1
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!");
}
};