mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna fix problem with reloading timed events
This commit is contained in:
@@ -1251,9 +1251,9 @@ namespace LuaGlobalFunctions
|
||||
|
||||
// not thread safe
|
||||
if (all_Events)
|
||||
E->eventMgr->RemoveEvent(eventId);
|
||||
E->eventMgr->SetState(eventId, LUAEVENT_STATE_ABORT);
|
||||
else
|
||||
E->eventMgr->globalProcessor->RemoveEvent(eventId);
|
||||
E->eventMgr->globalProcessor->SetState(eventId, LUAEVENT_STATE_ABORT);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1268,9 +1268,9 @@ namespace LuaGlobalFunctions
|
||||
|
||||
// not thread safe
|
||||
if (all_Events)
|
||||
E->eventMgr->RemoveEvents();
|
||||
E->eventMgr->SetStates(LUAEVENT_STATE_ABORT);
|
||||
else
|
||||
E->eventMgr->globalProcessor->RemoveEvents();
|
||||
E->eventMgr->globalProcessor->SetStates(LUAEVENT_STATE_ABORT);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user