Make the Eluna mutex static.

It was previously unsafe to reload Eluna because it had to be reloaded
with the mutex unlocked. This is because the mutex's lifespan was shorter
than the Eluna instance it was guarding.
This commit is contained in:
Patman64
2015-01-05 22:20:52 -05:00
parent 1678b3e40f
commit e2f81b7336
3 changed files with 5 additions and 4 deletions

View File

@@ -463,13 +463,13 @@ void Eluna::OnShutdownCancel()
void Eluna::OnWorldUpdate(uint32 diff)
{
ELUNA_LOCK(this);
if (reload)
{
ReloadEluna();
return;
}
ELUNA_LOCK(this);
eventMgr->globalProcessor->Update(diff);
Push(diff);