efbb: don't add timer to win cb if world was deleted
SVN revision: 77334
This commit is contained in:
parent
130f775227
commit
28a73415dd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue