Browse Source

Don't call event handlers for events which haven't been registered.

master
Gavan Fantom 14 years ago
parent
commit
0562093ebb
  1. 1
      event.c

1
event.c

@ -62,6 +62,7 @@ void event_dispatch(void)
if (event_get(&event)) {
event_clear(event);
if (event_handler_table[event] != NULL)
(event_handler_table[event])();
}
}

Loading…
Cancel
Save