1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

Define each identifier in a dedicated statement

This commit is contained in:
Alexander Wilms
2024-01-09 22:38:54 +00:00
parent d6ab285752
commit f3277b7953
76 changed files with 296 additions and 139 deletions
+2 -1
View File
@@ -90,7 +90,8 @@ void CBattleAI::yourTacticPhase(const BattleID & battleID, int distance)
static float getStrengthRatio(std::shared_ptr<CBattleInfoCallback> cb, int side)
{
auto stacks = cb->battleGetAllStacks();
auto our = 0, enemy = 0;
auto our = 0;
auto enemy = 0;
for(auto stack : stacks)
{