Skip to content

Commit b8247b2

Browse files
committed
Re-add async processor empty check
1 parent 79d4eb6 commit b8247b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

LuaEngine.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,10 @@ int Eluna::Register(std::underlying_type_t<Hooks::RegisterTypes> regtype, uint32
871871
void Eluna::UpdateEluna(uint32 diff)
872872
{
873873
if (reload && sElunaLoader->GetCacheState() == SCRIPT_CACHE_READY)
874-
_ReloadEluna();
874+
#if defined ELUNA_TRINITY
875+
if (GetQueryProcessor().Empty())
876+
#endif
877+
_ReloadEluna();
875878

876879
eventMgr->globalProcessor->Update(diff);
877880
#if defined ELUNA_TRINITY

0 commit comments

Comments
 (0)