From 4c40ddd12d434a9bc304df3b71851de9095ac409 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 3 Jun 2015 11:23:17 +0200 Subject: [PATCH] Simplifying if condition. --- game/graphics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/graphics.cc b/game/graphics.cc index 65d99b6..7400190 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) { + if (renderQueue.begin() + j != renderQueue.end()) { renderQueue.at(j+1) = renderQueue.at(j); } renderQueue.at(j) = std::make_tuple(shadowRenderQueue.at(i).light, shadowRenderQueue.at(i).currentPriority, i);