Skip to content

Commit 1b069fc

Browse files
committed
WHY U SO STUPID
1 parent 1c22949 commit 1b069fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

addons/AFM_PapaBear/Scripts/Game/AFM_PapaBear/Components/AFM_RadioMessageNetworkComponent.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ class AFM_RadioMessageNetworkComponent : ScriptComponent
9999
{
100100
Print("PlayRadioMsg");
101101
SCR_PlayerController pc = SCR_PlayerController.Cast(GetGame().GetPlayerController());
102-
if (!pc)
103-
return;
104-
if (isPublic || playerID == pc.GetPlayerId())
102+
if (isPublic || (pc && playerID == pc.GetPlayerId()))
105103
Rpc(RpcDo_PlayRadioMsg, msgType, msg, FactionId, seed, quality, sampleIndex);
106104
}
107105

0 commit comments

Comments
 (0)