Eluna fix problem with reloading timed events

This commit is contained in:
Rochet2
2015-02-15 02:08:23 +02:00
parent 4e787924e2
commit 6b5fed561c
5 changed files with 52 additions and 29 deletions

View File

@@ -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;
}