VertexLoaderJit: Fix out-of-bounds access for zfreeze.

This fixes a GCC6.1 warning.
This commit is contained in:
degasus
2016-05-07 09:35:40 +02:00
parent 22b5d89bf1
commit 258f48572d
6 changed files with 13 additions and 11 deletions

View File

@ -23,7 +23,7 @@ static void PosMtx_ReadDirect_UByte(VertexLoader* loader)
{
u32 posmtx = DataRead<u8>() & 0x3f;
if (loader->m_counter < 3)
VertexLoaderManager::position_matrix_index[loader->m_counter] = posmtx;
VertexLoaderManager::position_matrix_index[loader->m_counter + 1] = posmtx;
DataWrite<u32>(posmtx);
PRIM_LOG("posmtx: %d, ", posmtx);
}