From 528b833db0849eda9baaa65f6faf9f0b6268eeed Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Mon, 4 Jul 2011 15:17:46 +0000 Subject: [PATCH] Fix assertion failure in replay mode This was SVN commit r9757. --- source/ps/Game.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/ps/Game.cpp b/source/ps/Game.cpp index 36d3774f60..f7f950697d 100644 --- a/source/ps/Game.cpp +++ b/source/ps/Game.cpp @@ -272,7 +272,7 @@ bool CGame::Update(double deltaTime, bool doInterpolate) // TODO: maybe we should add a CCmpParticleInterface that passes the interpolation commands // etc to CParticleManager. But in the meantime just handle it explicitly here. - if (doInterpolate) + if (doInterpolate && CRenderer::IsInitialised()) g_Renderer.GetParticleManager().Interpolate(deltaTime); return ok; @@ -285,7 +285,8 @@ void CGame::Interpolate(float frameLength) m_TurnManager->Interpolate(frameLength); - g_Renderer.GetParticleManager().Interpolate(frameLength); + if (CRenderer::IsInitialised()) + g_Renderer.GetParticleManager().Interpolate(frameLength); }