changed pointer stuff
This commit is contained in:
@@ -47,9 +47,9 @@ void EventNotifier::unregister_event_handler(IEventHandler* handler)
|
||||
this->event_handlers.erase(handler);
|
||||
}
|
||||
|
||||
void EventNotifier::distribute_event(Event& event)
|
||||
void EventNotifier::distribute_event(std::shared_ptr<Event> event)
|
||||
{
|
||||
this->event_queue->push(event);
|
||||
this->event_queue->push(*event);
|
||||
}
|
||||
|
||||
void EventNotifier::notify()
|
||||
|
||||
Reference in New Issue
Block a user