summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-02 20:28:17 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-02 20:28:17 +0000
commit28a73415dd0a5a47d15d7da3576a7dd8ac787830 (patch)
treeb6d3a1f658e90439bafac4e110614bda83c3c549
parent130f77522791b207b4817e6afedf48fee94fe785 (diff)
efbb: don't add timer to win cb if world was deleted
SVN revision: 77334
-rw-r--r--src/bin/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 1541c67..c3ee9d9 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -113,6 +113,10 @@ _target_dec(void *data, EPhysics_Body *body __UNUSED__,
113 void *event_info __UNUSED__) 113 void *event_info __UNUSED__)
114{ 114{
115 Game *game = data; 115 Game *game = data;
116
117 if (!game->cur_world)
118 return;
119
116 game->targets--; 120 game->targets--;
117 121
118 if (!game->targets) 122 if (!game->targets)