Browse Source

Fix crash on Earthquake cast

Ivan Savenko 1 year ago
parent
commit
f2e7791326
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/spells/effects/Catapult.cpp

+ 1 - 0
lib/spells/effects/Catapult.cpp

@@ -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++)