Fix skip loop only working by accident

This commit is contained in:
Antonio Martinez 2024-08-28 18:19:37 -07:00
parent 0d97e525bb
commit 1500423f4d

View file

@ -1022,7 +1022,7 @@ static void AdvanceSkipSequences(UINT8 input)
UINT8 *cheats[4] = {s2cheat, s3cheat, s3kcheat, nicetry};
UINT8 cheatlengths[4] = {sizeof(s2cheat), sizeof(s3cheat), sizeof(s3kcheat), sizeof(nicetry)};
for (UINT8 i = 0; i < sizeof(&cheats); i++) // for each cheat...
for (UINT8 i = 0; i < 4; i++) // for each cheat...
{
UINT8 cheatsize = cheatlengths[i];
boolean matched = true;