From 2a30f75b78fb37b7e782bae66ce00154af3b729a Mon Sep 17 00:00:00 2001 From: hiker Date: Wed, 14 Feb 2018 09:20:45 +1100 Subject: [PATCH] Avoid crash that can happen if the first DT is large and event happens during that time. --- src/network/rewind_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/rewind_manager.cpp b/src/network/rewind_manager.cpp index b52df770b..4aa876812 100755 --- a/src/network/rewind_manager.cpp +++ b/src/network/rewind_manager.cpp @@ -243,6 +243,8 @@ void RewindManager::playEventsTill(float time, float *dt) Physics::getInstance()->getPhysicsWorld()->resetLocalTime(); } + if (m_rewind_queue.isEmpty()) return; + // This is necessary to avoid that rewinding an event will store the // event again as a seemingly new event. assert(!m_is_rewinding);