diff options
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut b/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut index 494262e8..66a40cb0 100644 --- a/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut +++ b/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut @@ -76,7 +76,7 @@ void function CHudChat_OnReceivedSayTextMessageCallback(int fromPlayerIndex, str entity fromPlayer = null string fromPlayerName = "" - if (fromPlayerIndex >= 0 && fromPlayerIndex < GetPlayerArray().len()) + if (fromPlayerIndex >= 0 && fromPlayerIndex <= 128) { fromPlayer = GetEntByIndex(fromPlayerIndex + 1) if (fromPlayer == null) { @@ -123,4 +123,4 @@ void function AddCallback_OnReceivedSayTextMessage( ClClient_MessageStruct funct void function NSSetupChathooksClient() { getroottable().rawset("CHudChat_ProcessMessageStartThread", CHudChat_ProcessMessageStartThread) -}
\ No newline at end of file +} |