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:
parent
d06ae15c6e
commit
f2e7791326
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user