Browse Source

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

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

3
event.c

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

Loading…
Cancel
Save