- Basic RTTI type data with inheritance.
This commit is contained in:
@@ -39,7 +39,7 @@ void event::remove_listener(event_listener* listener) {
|
||||
}
|
||||
|
||||
void event::dispatch(event* event) {
|
||||
for (auto& it : listeners[event->type]) {
|
||||
for (auto& it : listeners[event->get_type().id()]) {
|
||||
it->handle_event(event);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user