diff --git a/src/events.cpp b/src/events.cpp index 21a4409fb..d1e92510b 100755 --- a/src/events.cpp +++ b/src/events.cpp @@ -258,6 +258,7 @@ void EventManager::Shutdown() { handler->Destroy(); } + FirstEventHandler = LastEventHandler = nullptr; } #define DEFINE_EVENT_LOOPER(name, play) void EventManager::name() \