Merge pull request #12005 from Jamiras/rcheevos_invalid_addr_range

(cheevos) don't invalidate out-of-range addresses
This commit is contained in:
Autechre 2021-02-08 08:00:24 +01:00 committed by GitHub
commit 8e35fc6c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -501,7 +501,9 @@ static unsigned rcheevos_peek(unsigned address, unsigned num_bytes, void* ud)
}
}
rcheevos_invalidate_address(address);
if (address < rcheevos_locals.memory.total_size)
rcheevos_invalidate_address(address);
return 0;
}