Skip to content

Commit

Permalink
Add validity check to SaveStatsPeriodically_Threaded (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
CTalvio authored Jan 2, 2024
1 parent 00a4bb6 commit fd02b45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,10 @@ void function SaveStatsPeriodically_Threaded()
while( true )
{
foreach( entity player in GetPlayerArray() )
Stats_SaveAllStats( player )
{
if ( IsValid( player ) )
Stats_SaveAllStats( player )
}
wait 5
}
}
Expand Down

0 comments on commit fd02b45

Please sign in to comment.