Skip to content

Commit

Permalink
Add validitycheck to SaveStatsPeriodically_Threaded
Browse files Browse the repository at this point in the history
  • Loading branch information
CTalvio authored Dec 10, 2023
1 parent 0c5c9b1 commit 5dd9242
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,8 @@ void function SaveStatsPeriodically_Threaded()
while( true )
{
foreach( entity player in GetPlayerArray() )
if ( !IsValid( player ) )
continue
Stats_SaveAllStats( player )
wait 5
}
Expand Down

0 comments on commit 5dd9242

Please sign in to comment.