Don't crash on broken demo files

This commit is contained in:
def 2014-08-31 03:13:42 +02:00
parent 9f4ac93d90
commit f1288127a3

View file

@ -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();