From 5acce242c166eff17aeddb7889cdbe0947489a16 Mon Sep 17 00:00:00 2001 From: lioncash Date: Mon, 4 Feb 2013 09:36:58 -0500 Subject: [PATCH] Another 'Check if the number is within range before accessing' array change --- GPU/GLES/DisplayListInterpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/DisplayListInterpreter.cpp b/GPU/GLES/DisplayListInterpreter.cpp index 4e43ddde4d..d7c10c3f03 100644 --- a/GPU/GLES/DisplayListInterpreter.cpp +++ b/GPU/GLES/DisplayListInterpreter.cpp @@ -978,7 +978,7 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) { { int num = gstate.boneMatrixNumber & 0x7F; float newVal = getFloat24(data); - if (newVal != gstate.boneMatrix[num] && num < 96) { + if (num < 96 && newVal != gstate.boneMatrix[num]) { Flush(); gstate.boneMatrix[num] = newVal; shaderManager_->DirtyUniform(DIRTY_BONEMATRIX0 << (num / 12));