Skip to content

Commit 554a27d

Browse files
committed
Fixed crash caused by calling client-side setPlayerNametagShowing with a ped
1 parent 035084c commit 554a27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ bool CStaticFunctionDefinitions::SetPlayerNametagShowing(CClientEntity& Entity,
19191919
{
19201920
RUN_CHILDREN(SetPlayerNametagShowing(**iter, bShowing))
19211921

1922-
if (IS_PED(&Entity))
1922+
if (IS_PLAYER(&Entity))
19231923
{
19241924
CClientPlayer& Player = static_cast<CClientPlayer&>(Entity);
19251925

0 commit comments

Comments
 (0)