mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix TC build, analysis warnings and triggering addon message hooks
This commit is contained in:
@@ -89,13 +89,13 @@ void Eluna::ReloadEluna()
|
||||
|
||||
EventMgr::ProcessorSet oldProcessors;
|
||||
{
|
||||
EventMgr::ReadGuard lock(sEluna->eventMgr->GetLock());
|
||||
EventMgr::ReadGuard guard(sEluna->eventMgr->GetLock());
|
||||
oldProcessors = sEluna->eventMgr->processors;
|
||||
}
|
||||
Uninitialize();
|
||||
Initialize();
|
||||
{
|
||||
EventMgr::WriteGuard lock(sEluna->eventMgr->GetLock());
|
||||
EventMgr::WriteGuard guard(sEluna->eventMgr->GetLock());
|
||||
sEluna->eventMgr->processors.insert(oldProcessors.begin(), oldProcessors.end());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user