diff --git a/source/arm11/cheat.c b/source/arm11/cheat.c index 024ab27..40cf552 100644 --- a/source/arm11/cheat.c +++ b/source/arm11/cheat.c @@ -406,7 +406,7 @@ static CodeLocation rom_fit_newsize( CodeLocation rom, int realend, int totalsiz u32 start = realend - INSTR_SIZE; memset( &rom[INSTR_LEN(start)], 0, sznrom-start ); *newsize = sznrom; - return rom + sznrom - ( (totalsize+0x1f) & (~0xf) ); + return rom + INSTR_LEN( sznrom - ( (totalsize+0x1f) & (~0xf) ) ); } return rom + INSTR_LEN( realend );