Skip to content

Commit 67aa83e

Browse files
committed
Fix crash in CClientGame::PedStepHandler
1 parent 3c5691d commit 67aa83e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Client/mods/deathmatch/logic/CClientGame.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6910,6 +6910,10 @@ void CClientGame::PedStepHandler(CPedSAInterface* pPedSA, bool bFoot)
69106910
{
69116911
CLuaArguments Arguments;
69126912
CClientPed* pClientPed = DynamicCast<CClientPed>(GetGameEntityXRefManager()->FindClientEntity((CEntitySAInterface*)pPedSA));
6913+
6914+
if (!pClientPed)
6915+
return;
6916+
69136917
Arguments.PushBoolean(bFoot);
69146918
pClientPed->CallEvent("onClientPedStep", Arguments, true);
69156919
}

0 commit comments

Comments
 (0)