mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
Add preframe sanity check
This commit is contained in:
parent
22ff805d4f
commit
f0ecfaf2a7
@ -1092,6 +1092,12 @@ bool LoadCurrentReplayFormat(File file, int version, int style, int track)
|
||||
}
|
||||
|
||||
file.ReadInt32(gA_FrameCache[style][track].iPreFrames);
|
||||
|
||||
// In case the replay was from when there could still be negative preframes
|
||||
if(gA_FrameCache[style][track].iPreFrames < 0)
|
||||
{
|
||||
gA_FrameCache[style][track].iPreFrames = 0;
|
||||
}
|
||||
}
|
||||
|
||||
int iTemp = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user