Skip to content

Commit

Permalink
Check player validity in SetupChallenges_Threaded (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
fvnkhead authored Jul 11, 2024
1 parent e76789b commit 52e007a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52e007a

Please sign in to comment.