efbb: don't add timer to win cb if world was deleted

SVN revision: 77334
This commit is contained in:
Bruno Dilly 2012-10-02 20:28:17 +00:00
parent 130f775227
commit 28a73415dd
1 changed files with 4 additions and 0 deletions

View File

@ -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)