From 258f48572deda4bedd776dd7e11584e9c252c61d Mon Sep 17 00:00:00 2001 From: degasus Date: Sat, 7 May 2016 09:35:40 +0200 Subject: VertexLoaderJit: Fix out-of-bounds access for zfreeze. This fixes a GCC6.1 warning. --- Source/Core/VideoCommon/VertexLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VertexLoader.cpp') diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index e1410b49f2..1db8deec0c 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -23,7 +23,7 @@ static void PosMtx_ReadDirect_UByte(VertexLoader* loader) { u32 posmtx = DataRead() & 0x3f; if (loader->m_counter < 3) - VertexLoaderManager::position_matrix_index[loader->m_counter] = posmtx; + VertexLoaderManager::position_matrix_index[loader->m_counter + 1] = posmtx; DataWrite(posmtx); PRIM_LOG("posmtx: %d, ", posmtx); } -- cgit v1.2.3