Eluna fix problem with reloading timed events

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

View File

@@ -1244,9 +1244,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;
}
@@ -1261,9 +1261,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;
}