fix: fix null pointer exception

This commit is contained in:
Иванов Иван 2024-08-12 18:10:18 +02:00
parent f761a0577e
commit b7d8dd1db0

View File

@ -122,7 +122,9 @@ namespace Interlude
void __fastcall GameEngineWrapper::__OnReceiveMagicSkillCanceled_hook(GameEngine* This, uint32_t, User* user)
{
if (user) {
Services::ServiceLocator::GetInstance().GetEventDispatcher()->Dispatch(Events::SkillCancelledEvent{ user->objectId });
}
(*__OnReceiveMagicSkillCanceled)(This, user);
}