1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

Merge pull request #2920 from Nordsoft91/nkai-fixes

Fix mistake in NKAI
This commit is contained in:
Andrii Danylchenko
2023-09-23 08:58:23 +03:00
committed by GitHub

View File

@@ -393,7 +393,7 @@ void ArmyManager::update()
}
}
for(auto army : totalArmy)
for(auto & army : totalArmy)
{
army.second.creature = army.first.toCreature();
army.second.power = evaluateStackPower(army.second.creature, army.second.count);