Fix memory bounds error in achievements dev

This particular out of bounds error was causing every memory read at the far end of memory to return all zeroes.
This commit is contained in:
LillyJadeKatrin 2025-04-22 22:49:55 -04:00
parent c0c180bdc2
commit 8b610101bc

View file

@ -1316,7 +1316,7 @@ u32 AchievementManager::MemoryPeeker(u32 address, u8* buffer, u32 num_bytes, rc_
if (instance.m_dll_found)
{
std::lock_guard lg{instance.m_memory_lock};
if (u64(address) + num_bytes >= instance.m_cloned_memory.size())
if (u64(address) + num_bytes > instance.m_cloned_memory.size())
{
ERROR_LOG_FMT(ACHIEVEMENTS,
"Attempt to read past memory size: size {} address {} write length {}",