1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

NKAI: a few crash/hang fixes

This commit is contained in:
Andrii Danylchenko
2022-11-03 21:16:49 +02:00
parent ae1d2c50e2
commit 233b850daf
4 changed files with 7 additions and 3 deletions

View File

@@ -307,7 +307,7 @@ void Nullkiller::executeTask(Goals::TTask task)
{
logAi->trace("Task %s completed", task->toString());
}
catch(std::exception & e)
catch(cannotFulfillGoalException & e)
{
logAi->debug("Failed to realize subgoal of type %s, I will stop.", taskDescr);
logAi->debug("The error message was: %s", e.what());