summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/meritum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/meritum.cpp')
-rw-r--r--src/mame/drivers/meritum.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/meritum.cpp b/src/mame/drivers/meritum.cpp
index 6d4487acd20..aa38d7e47ec 100644
--- a/src/mame/drivers/meritum.cpp
+++ b/src/mame/drivers/meritum.cpp
@@ -421,12 +421,12 @@ QUICKLOAD_LOAD_MEMBER(meritum_state::quickload_cb)
image.fread( &addr, 2);
u16 address = (addr[1] << 8) | addr[0];
logerror("/CMD object code block: address %04x length %u\n", address, block_length);
- if (address < 0x3c00)
+ ptr = program.get_write_ptr(address);
+ if (!ptr)
{
image.message("Attempting to write outside of RAM");
return image_init_result::FAIL;
}
- ptr = program.get_write_ptr(address);
image.fread( ptr, block_length);
}
break;