From 4772311160ac42c950506ccd143b86544210a6dc Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Thu, 12 Sep 2024 20:27:32 +0000 Subject: [PATCH] Fix positioning of defender war machines --- lib/battle/BattleLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/battle/BattleLayout.cpp b/lib/battle/BattleLayout.cpp index 6fa951d87..884ae34b5 100644 --- a/lib/battle/BattleLayout.cpp +++ b/lib/battle/BattleLayout.cpp @@ -56,7 +56,7 @@ BattleLayout BattleLayout::createLayout(IGameCallback * cb, const std::string & result.warMachines[BattleSide::ATTACKER][i] = loadHex(config["attackerWarMachines"][i]); for (size_t i = 0; i < 4; ++i) - result.warMachines[BattleSide::DEFENDER][i] = loadHex(config["attackerWarMachines"][i]); + result.warMachines[BattleSide::DEFENDER][i] = loadHex(config["defenderWarMachines"][i]); if (attacker->formation == EArmyFormation::LOOSE && !config["attackerUnitsLoose"].isNull()) result.units[BattleSide::ATTACKER] = loadUnits(config["attackerUnitsLoose"][attacker->stacksCount() - 1]);