diff options
Diffstat (limited to 'sim')
-rw-r--r-- | sim/src/BaseBattle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/src/BaseBattle.cpp b/sim/src/BaseBattle.cpp index fc12b9c..9587ca7 100644 --- a/sim/src/BaseBattle.cpp +++ b/sim/src/BaseBattle.cpp @@ -139,7 +139,7 @@ BaseBattle::turrets(const float dt) const auto damage = effective_damage(def, distance.magnitude()); if (damage > 0.0) { target_points.health -= damage; - _dispatcher.trigger(Hit{damage, entity, state.target}); + _dispatcher.trigger(Hit{damage, control.owner, state.target}); } control.reload = def.rate_of_fire; } |