EventManager: Fix Event Manager being accessed after static destruction
parent
3ab06199c3
commit
d42c51d772
|
|
@ -7,8 +7,8 @@
|
|||
using namespace icsneo;
|
||||
|
||||
EventManager& EventManager::GetInstance() {
|
||||
static EventManager inst;
|
||||
return inst;
|
||||
static EventManager* inst = new EventManager();
|
||||
return *inst;
|
||||
}
|
||||
|
||||
void EventManager::downgradeErrorsOnCurrentThread() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue