From 4be80a3c7c84ba8dea5984609b33c0acd08bdc55 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 18 Sep 2012 21:11:34 -0400 Subject: [PATCH] Fix crash - uninitialized (and not needed) variable --- src/graphics/Renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/Renderer.cpp b/src/graphics/Renderer.cpp index 7d5f28bbf..de51562c5 100644 --- a/src/graphics/Renderer.cpp +++ b/src/graphics/Renderer.cpp @@ -518,7 +518,7 @@ wall_type * Renderer_wtypes = LoadWalls(Renderer_wtypesCount); VideoBuffer * Renderer::WallIcon(int wallID, int width, int height) { - int x, y, i, j, cr, cg, cb; + int i, j, cr, cg, cb; int wt = wallID; if (wt<0 || wt>=Renderer_wtypesCount) return 0; @@ -578,7 +578,7 @@ VideoBuffer * Renderer::WallIcon(int wallID, int width, int height) for (j=0; jSetPixel(i, j, PIXR(pc), PIXG(pc), PIXB(pc), 255); else newTexture->SetPixel(i, j, 0x80, 0x80, 0x80, 255);