Skip to content

Commit

Permalink
Change IsValid() check to EndSignal() (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanieon authored Jul 12, 2024
1 parent 52e007a commit f586107
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ void function SetupPlayerMenuChallenges( entity player )

void function SetupChallenges_Threaded( entity player )
{
player.EndSignal( "OnDestroy" )

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 f586107

Please sign in to comment.