1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Merge pull request #3121 from vcmi/fix-fight-in-dwelling

BattleAI: fix freeze fighting in dwelling
This commit is contained in:
Ivan Savenko 2023-10-29 15:22:47 +02:00 committed by GitHub
commit 720a404e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,9 +104,6 @@ void BattleProcessor::startBattlePrimary(const CArmedInstance *army1, const CArm
assert(gameHandler->gameState()->getBattle(army1->getOwner()) == nullptr);
assert(gameHandler->gameState()->getBattle(army2->getOwner()) == nullptr);
engageIntoBattle(army1->tempOwner);
engageIntoBattle(army2->tempOwner);
const CArmedInstance *armies[2];
armies[0] = army1;
armies[1] = army2;