mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fixes shutdown error for Mangos
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user