1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fix few more missing BattleID's

This commit is contained in:
Ivan Savenko
2023-09-11 13:20:16 +03:00
parent c4e2417326
commit fd3217c875
2 changed files with 2 additions and 0 deletions

View File

@ -395,6 +395,7 @@ void CStack::spendMana(ServerCallback * server, const int spellCost) const
logGlobal->warn("Unexpected spell cost %d for creature", spellCost);
BattleSetStackProperty ssp;
ssp.battleID = battle->battleID;
ssp.stackID = unitId();
ssp.which = BattleSetStackProperty::CASTS;
ssp.val = -spellCost;