Skip to content

Commit 54c04a0

Browse files
authored
Update shavit-wr.sp
1 parent 17e6011 commit 54c04a0

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

addons/sourcemod/scripting/shavit-wr.sp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,14 @@ void ResetWRs()
336336
{
337337
gSM_WRNames.Clear();
338338

339-
any empty_cells[TRACKS_SIZE];
339+
float fempty_cells[TRACKS_SIZE];
340+
int iempty_cells[TRACKS_SIZE];
340341

341342
for(int i = 0; i < gI_Styles; i++)
342343
{
343-
gF_WRTime[i] = empty_cells;
344-
gI_WRRecordID[i] = empty_cells;
345-
gI_WRSteamID[i] = empty_cells;
344+
gF_WRTime[i] = fempty_cells;
345+
gI_WRRecordID[i] = iempty_cells;
346+
gI_WRSteamID[i] = iempty_cells;
346347
}
347348
}
348349

@@ -486,12 +487,13 @@ public void OnClientConnected(int client)
486487

487488
gB_LoadedCache[client] = false;
488489

489-
any empty_cells[TRACKS_SIZE];
490+
float fempty_cells[TRACKS_SIZE];
491+
int iempty_cells[TRACKS_SIZE];
490492

491493
for(int i = 0; i < gI_Styles; i++)
492494
{
493-
gF_PlayerRecord[client][i] = empty_cells;
494-
gI_PlayerCompletion[client][i] = empty_cells;
495+
gF_PlayerRecord[client][i] = fempty_cells;
496+
gI_PlayerCompletion[client][i] = iempty_cells;
495497
}
496498
}
497499

0 commit comments

Comments
 (0)