Skip to content

Commit 5d8a641

Browse files
committed
Switch to using GUID as hashmap key
1 parent cde7607 commit 5d8a641

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/server/game/Entities/Object/Object.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3635,6 +3635,8 @@ ElunaEventProcessor* WorldObject::GetElunaEvents(int32 mapId)
36353635
return nullptr;
36363636

36373637
EventMgr* mgr = eluna->eventMgr.get();
3638+
if (!mgr)
3639+
return nullptr;
36383640

36393641
// Select the correct ProcessorInfo slot
36403642
std::unique_ptr<ElunaProcessorInfo>& info = (mapId == -1) ? elunaWorldEvents : elunaMapEvents;

src/server/game/LuaEngine

0 commit comments

Comments
 (0)