Fix ARAM Expansion Writes

Looks like the memcpy here had its args in the wrong order.
This commit is contained in:
CasualPokePlayer 2022-07-26 02:01:25 -07:00 committed by GitHub
parent 8723b1a42e
commit bd27e18d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ u64 CHSPDevice_ARAMExpansion::Read(u32 address)
void CHSPDevice_ARAMExpansion::Write(u32 address, u64 value)
{
value = Common::swap64(value);
std::memcpy(&value, &m_ptr[address & m_mask], sizeof(value));
std::memcpy(&m_ptr[address & m_mask], &value, sizeof(value));
}
void CHSPDevice_ARAMExpansion::DoState(PointerWrap& p)