From c19d9b02be5d894f91cd45884eed67152dffffa4 Mon Sep 17 00:00:00 2001 From: hatal175 Date: Tue, 6 Feb 2024 07:04:35 +0200 Subject: J3D work (#2064) --- libs/JSystem/J2DGraph/J2DMaterial.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/JSystem/J2DGraph/J2DMaterial.cpp') diff --git a/libs/JSystem/J2DGraph/J2DMaterial.cpp b/libs/JSystem/J2DGraph/J2DMaterial.cpp index 6c0ff56168..d25648f748 100644 --- a/libs/JSystem/J2DGraph/J2DMaterial.cpp +++ b/libs/JSystem/J2DGraph/J2DMaterial.cpp @@ -369,7 +369,7 @@ void J2DMaterial::setAnimation(J2DAnmTevRegKey* anm) { if (index == matID) { J3DAnmCRegKeyTable* anmTbl = anm->getAnmCRegKeyTable(); - mAnmPointer->field_0x32[anmTbl[i]._18] = i; + mAnmPointer->field_0x32[anmTbl[i].mColorId] = i; } } } @@ -387,7 +387,7 @@ void J2DMaterial::setAnimation(J2DAnmTevRegKey* anm) { if (index == matID) { J3DAnmKRegKeyTable* anmTbl = anm->getAnmKRegKeyTable(); - mAnmPointer->field_0x3a[anmTbl[i]._18] = i; + mAnmPointer->field_0x3a[anmTbl[i].mColorId] = i; } } } -- cgit v1.2.3