Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions addons/sourcemod/scripting/surftimer/replay.sp
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,9 @@ public void PlayRecord(int client, int type, int style, int use_CP)
}
}

// free the previous frame list first: looping bonus/stage bots and manual
// !replay picks come back through here, and overwriting leaked one list per loop.
delete g_aReplayFrame[client];
g_aReplayFrame[client] = header.Frames;
g_iReplayVersion[client] = header.BinaryFormatVersion;

Expand Down
Loading