aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp
diff options
context:
space:
mode:
authorfvnkhead <98965760+fvnkhead@users.noreply.github.com>2024-07-11 20:31:29 +0300
committerGitHub <noreply@github.com>2024-07-11 19:31:29 +0200
commit52e007ac0634ee5dd9376bd82ae76af6fd5f44d7 (patch)
tree18a7267eead2ec02d05cf0afd5e6a2ece36cf849 /Northstar.CustomServers/mod/scripts/vscripts/mp
parente76789be99d43242bb06e148c1e32485217ce79a (diff)
downloadNorthstarMods-52e007ac0634ee5dd9376bd82ae76af6fd5f44d7.tar.gz
NorthstarMods-52e007ac0634ee5dd9376bd82ae76af6fd5f44d7.zip
Check player validity in `SetupChallenges_Threaded` (#819)
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut3
1 files changed, 3 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut
index 4b866a40f..ffefc3b4e 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_challenges.gnut
@@ -66,6 +66,9 @@ void function SetupPlayerMenuChallenges( entity player )
void function SetupChallenges_Threaded( entity player )
{
WaitFrame()
+
+ if ( !IsValid( player ) )
+ return
Remote_CallFunction_UI( player, "SCB_SetCompleteMeritState", 0 )
Remote_CallFunction_UI( player, "SCB_SetEvacMeritState", 4 ) //4 tells RUI to hide it