2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-15 02:46:10 +00:00

CSkinRules: Fix ReadCount not incrementing offset properly

This commit is contained in:
2022-03-03 00:24:46 -08:00
parent 7010c36056
commit 487dcc4bde
4 changed files with 17 additions and 2 deletions

View File

@@ -12,8 +12,9 @@ static u32 ReadCount(CInputStream& in) {
return in.ReadLong();
}
u8 junk[784];
for (u32 i = 0; i < (result * 3); ++i) {
u32 iVar2 = ((result * 3) - i);
u32 iVar2 = 0;
for (u32 i = 0; i < (result * 3); i += iVar2) {
iVar2 = ((result * 3) - i);
iVar2 = 192 < iVar2 ? 192 : iVar2;
in.Get(junk, iVar2 * 4);
}