fix: game crash

This commit is contained in:
2021-11-06 16:20:12 +01:00
parent 672e4c2f03
commit eb8a43cd1a
4 changed files with 8 additions and 17 deletions

View File

@@ -233,7 +233,7 @@ void IceTower::tick(std::uint64_t delta, World* world) {
for (MobPtr mob : world->getMobList()) {
if (isMobInRange(mob)) {
mob->addEffect(EffectType::Slowness, 1, this); // slowness for 1s every second
mob->damage(damage);
mob->damage(damage, this);
wasTowerActive = true;
}
}