From 28a73415dd0a5a47d15d7da3576a7dd8ac787830 Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Tue, 2 Oct 2012 20:28:17 +0000 Subject: [PATCH] efbb: don't add timer to win cb if world was deleted SVN revision: 77334 --- src/bin/main.c | 4 ++++ 1 file changed, 4 insertions(+) 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__, void *event_info __UNUSED__) { Game *game = data; + + if (!game->cur_world) + return; + game->targets--; if (!game->targets)