From 9c4b7a454877805d08f41caf57c0503bfe2f3d55 Mon Sep 17 00:00:00 2001 From: omegadox Date: Thu, 6 Nov 2008 03:39:48 +0000 Subject: [PATCH] Small Fill and Slide fix. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1084 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/ActionReplay.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Src/ActionReplay.cpp b/Source/Core/Core/Src/ActionReplay.cpp index 64527b2ed8..bcdda27b28 100644 --- a/Source/Core/Core/Src/ActionReplay.cpp +++ b/Source/Core/Core/Src/ActionReplay.cpp @@ -486,17 +486,19 @@ bool DoARZeroCode_FillAndSlide() curr_addr += addr_incr; } break; case 0x1: // Halfword + curr_addr >>= 1; for(int i=0; i < write_num; i++) { u8 repeat = val >> 16; for(int j=0; j < repeat; j++) { - Memory::Write_U8(val & 0xFFFF, new_addr + j * 2); + Memory::Write_U16(val & 0xFFFF, new_addr + j * 2); } val += val_incr; curr_addr += addr_incr; } break; case 0x2: // Word + curr_addr >>= 2; for(int i=0; i < write_num; i++) { - Memory::Write_U16(val, new_addr); + Memory::Write_U32(val, new_addr); val += val_incr; curr_addr += addr_incr; } break;