Fix bug in preprocessing cheats

This commit is contained in:
Gericom
2026-03-15 10:21:47 +01:00
parent d0f25a51d9
commit bac98b4405

View File

@@ -580,7 +580,7 @@ void NdsLoader::PreprocessCheats()
for (u32 i = 0; i < _cheats->numberOfCheats; i++)
{
cheatPreprocessor.PreprocessCheat(cheat);
cheat = (pload_cheat_t*)((u8*)cheat + cheat->length);
cheat = (pload_cheat_t*)((u8*)cheat + sizeof(u32) + cheat->length);
}
}
}