From 40dd00f570880f1c03ef05432c9a4148ef87a8e9 Mon Sep 17 00:00:00 2001 From: Foereaper Date: Tue, 23 Dec 2014 00:46:06 +0100 Subject: [PATCH] Fixes shutdown error for Mangos --- ElunaEventMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);