Fixes shutdown error for Mangos

This commit is contained in:
Foereaper
2014-12-23 00:46:06 +01:00
parent 66a624d5db
commit 40dd00f570

View File

@@ -53,7 +53,7 @@ ElunaEventProcessor::~ElunaEventProcessor()
{ {
RemoveEvents_internal(); RemoveEvents_internal();
if (obj) if (obj && Eluna::initialized)
{ {
EventMgr::WriteGuard lock((*E)->eventMgr->GetLock()); EventMgr::WriteGuard lock((*E)->eventMgr->GetLock());
(*E)->eventMgr->processors.erase(this); (*E)->eventMgr->processors.erase(this);