From 0b0b11d2e03cb0b6f56859cd723ce94fe5f8e7e6 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Wed, 8 Dec 2010 16:09:53 +0000 Subject: [PATCH] Fix occasional assertion failure in time warp mode This was SVN commit r8810. --- source/simulation2/Simulation2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/simulation2/Simulation2.cpp b/source/simulation2/Simulation2.cpp index 8a5a0d9f33..7f0fb43737 100644 --- a/source/simulation2/Simulation2.cpp +++ b/source/simulation2/Simulation2.cpp @@ -234,6 +234,9 @@ void CSimulation2Impl::Interpolate(float frameLength, float frameOffset) CMessageInterpolate msg(frameLength, frameOffset); m_ComponentManager.BroadcastMessage(msg); + + // Clean up any entities destroyed during interpolate (e.g. local corpses) + m_ComponentManager.FlushDestroyedComponents(); } void CSimulation2Impl::DumpState()