diff --git a/source/arm11/cheat.c b/source/arm11/cheat.c index 2a63bfd..3f964dd 100644 --- a/source/arm11/cheat.c +++ b/source/arm11/cheat.c @@ -62,7 +62,6 @@ cheat_error_t overwrite_current_cheat( acl_entryid_t id, u16 value ) if( setting.chtId == 0 ) return CCHT_NOT_INIT; u16 index = ENT_HOLE(id); - u16 option = ENT_KEY(id); if( index == 0 ) return CCHT_INVALID; if( index <= setting.entLen ) @@ -436,7 +435,7 @@ static void rom_append_cheatproc( int mode, CodeLocation start, u16 bindkey, u32 { if( (j < 4) && (j & 1) ) { - u8 *p = start++; + u8 *p = (u8*)start++; acl_entry_get_armcode(j, (u32*)p); *p = j>1 ? val >> 8 : val & 0xff; }