summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/tankgame/tankitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine/tankgame/tankitem.cpp')
-rw-r--r--examples/statemachine/tankgame/tankitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/statemachine/tankgame/tankitem.cpp b/examples/statemachine/tankgame/tankitem.cpp
index 5506a7e..c322d21 100644
--- a/examples/statemachine/tankgame/tankitem.cpp
+++ b/examples/statemachine/tankgame/tankitem.cpp
@@ -113,6 +113,7 @@ void TankItem::idle(qreal elapsed)
void TankItem::hitByRocket()
{
+ emit aboutToBeDestroyed();
deleteLater();
}