1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

NKAI: fix freeze on army gathering

This commit is contained in:
Andrii Danylchenko
2023-08-05 13:49:49 +03:00
committed by Ivan Savenko
parent d7cbe4ecde
commit 04fe78d31c
3 changed files with 19 additions and 16 deletions

View File

@ -323,6 +323,11 @@ void Nullkiller::makeTurn()
}
executeTask(bestTask);
if(i == MAXPASS)
{
logAi->error("Goal %s exceeded maxpass. Terminating AI turn.", bestTask->toString());
}
}
}