Skip to content

Commit

Permalink
Check player validity in SetupChallenges_Threaded
Browse files Browse the repository at this point in the history
  • Loading branch information
fvnkhead committed Jul 10, 2024
1 parent e76789b commit 50f9ff8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ 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 50f9ff8

Please sign in to comment.