mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +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;
|
m_Info.m_PreviousTick = -1;
|
||||||
|
|
||||||
// playback everything until we hit our tick
|
// playback everything until we hit our tick
|
||||||
while(m_Info.m_PreviousTick < WantedTick)
|
while(m_Info.m_PreviousTick < WantedTick && IsPlaying())
|
||||||
DoTick();
|
DoTick();
|
||||||
|
|
||||||
Play();
|
Play();
|
||||||
|
|
Loading…
Reference in a new issue