1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

VCAI: hard limit on iterations per turn

This commit is contained in:
Andrii Danylchenko 2023-02-18 22:08:08 +02:00 committed by Ivan Savenko
parent 92a3bb69ec
commit ebfebfd535

View File

@ -863,7 +863,7 @@ void VCAI::mainLoop()
invalidPathHeroes.clear();
while (basicGoals.size())
for (int pass = 0; pass< 30 && basicGoals.size(); pass++)
{
vstd::removeDuplicates(basicGoals); //TODO: container which does this automagically without has would be nice
goalsToAdd.clear();