1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-13 13:18:43 +02:00

Fix crash on Earthquake cast

This commit is contained in:
Ivan Savenko 2023-11-27 13:25:49 +02:00
parent d06ae15c6e
commit f2e7791326

View File

@ -72,6 +72,7 @@ void Catapult::applyMassive(ServerCallback * server, const Mechanics * m) const
return;
CatapultAttack ca;
ca.battleID = m->battle()->getBattle()->getBattleID();
ca.attacker = m->caster->getHeroCaster() ? -1 : m->caster->getCasterUnitId();
for(int i = 0; i < targetsToAttack; i++)