mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Don't crash on broken demo files
This commit is contained in:
parent
9f4ac93d90
commit
f1288127a3
|
@ -754,7 +754,7 @@ int CDemoPlayer::SetPos(float Percent)
|
|||
m_Info.m_PreviousTick = -1;
|
||||
|
||||
// playback everything until we hit our tick
|
||||
while(m_Info.m_PreviousTick < WantedTick)
|
||||
while(m_Info.m_PreviousTick < WantedTick && IsPlaying())
|
||||
DoTick();
|
||||
|
||||
Play();
|
||||
|
|
Loading…
Reference in a new issue