diff --git a/ElunaEventMgr.cpp b/ElunaEventMgr.cpp index 9f304ef..2ea57f9 100644 --- a/ElunaEventMgr.cpp +++ b/ElunaEventMgr.cpp @@ -53,7 +53,7 @@ ElunaEventProcessor::~ElunaEventProcessor() { RemoveEvents_internal(); - if (obj) + if (obj && Eluna::initialized) { EventMgr::WriteGuard lock((*E)->eventMgr->GetLock()); (*E)->eventMgr->processors.erase(this);