1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

vcmi: reduce CStack usage a little bit

This commit is contained in:
Konstantin
2023-04-01 02:58:40 +03:00
parent e946ddcfeb
commit e0715a76c8
7 changed files with 10 additions and 10 deletions

View File

@@ -4815,7 +4815,7 @@ bool CGameHandler::makeBattleAction(BattleAction &ba)
if(target.at(0).unitValue)
destStack = target.at(0).unitValue;
else
destStack = gs->curB->battleGetStackByPos(target.at(0).hexValue);
destStack = gs->curB->battleGetUnitByPos(target.at(0).hexValue);
if(healer == nullptr || destStack == nullptr || !healerAbility || healerAbility->subtype < 0)
{