1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +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
commit 952c740c73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);