mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Merge pull request #1595 from vcmi/vkai-hack-to-workaround-freezes
VCAI: hard limit on iterations per turn
This commit is contained in:
commit
06b35ce533
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user