mirror of
https://github.com/LIJI32/SameBoy.git
synced 2026-10-12 02:06:38 +00:00
Fix cheat search crashing on carts without RAM
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ bool GB_cheat_search_filter(GB_gameboy_t *gb, const char *expression, GB_cheat_s
|
||||
}
|
||||
skip:;
|
||||
old_data++;
|
||||
if (new_data == gb->ram + gb->ram_size - 1) {
|
||||
if (new_data == gb->ram + gb->ram_size - 1 && gb->mbc_ram_size) {
|
||||
new_data = gb->mbc_ram;
|
||||
}
|
||||
else if (new_data == gb->mbc_ram + gb->mbc_ram_size - 1) {
|
||||
|
||||
Reference in New Issue
Block a user