From 00a08bf5f0b58a3bbe9f38112c3be3249b148b5f Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 3 Jun 2015 02:25:47 +0200 Subject: [PATCH] Fixing a crash when maxShadowRenderCount is set to one. --- game/graphics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/graphics.cc b/game/graphics.cc index 6cb5738..65d99b6 100644 --- a/game/graphics.cc +++ b/game/graphics.cc @@ -366,7 +366,7 @@ void Graphics::render(double time) for(unsigned int i = 0; i std::get<1>(renderQueue.at(j))){ - if (j 1) { renderQueue.at(j+1) = renderQueue.at(j); } renderQueue.at(j) = std::make_tuple(shadowRenderQueue.at(i).light, shadowRenderQueue.at(i).currentPriority, i);