fix: fix null pointer exception
This commit is contained in:
parent
b3c3a5fa85
commit
a11cde4121
@ -235,7 +235,9 @@ namespace Interlude
|
||||
|
||||
int __fastcall GameEngineWrapper::__OnDie_hook(GameEngine* This, int, User* creature, L2ParamStack& stack)
|
||||
{
|
||||
if (creature) {
|
||||
Services::ServiceLocator::GetInstance().GetEventDispatcher()->Dispatch(Events::CreatureDiedEvent{ creature->objectId, stack.GetBufferAsVector<int32_t>() });
|
||||
}
|
||||
|
||||
return (*__OnDie)(This, creature, stack);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user