summaryrefslogtreecommitdiff
path: root/sim/src
diff options
context:
space:
mode:
Diffstat (limited to 'sim/src')
-rw-r--r--sim/src/BaseBattle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/src/BaseBattle.cpp b/sim/src/BaseBattle.cpp
index 5173892..99a0199 100644
--- a/sim/src/BaseBattle.cpp
+++ b/sim/src/BaseBattle.cpp
@@ -105,6 +105,7 @@ BaseBattle::kill_off_dead()
if (_registry.all_of<universe::UniqueIdentifier, Team>(entity)) {
const auto& [identifier, team] = _registry.get<universe::UniqueIdentifier, Team>(entity);
_dispatcher.trigger(stats::ShipLeft{time, identifier, team.id, true});
+ _dispatcher.trigger(Destroyed{entity});
}
_registry.destroy(entity);
}