diff options
author | 2020-04-30 17:34:45 -0700 | |
---|---|---|
committer | 2020-04-30 17:34:45 -0700 | |
commit | 6e90aa90fd8ae890d10c66d35b9533fce83ee0a9 (patch) | |
tree | 3c660f67718152992fae2c40e2578ae1dfad65c0 | |
parent | 8cc41c96e5fcb965d5ccd1fe9f1872e050b80113 (diff) |
Fixed ROM fill routine
-rw-r--r-- | src/devices/bus/coco/cococart.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/bus/coco/cococart.cpp b/src/devices/bus/coco/cococart.cpp index c97c770eea7..1cb97210e34 100644 --- a/src/devices/bus/coco/cococart.cpp +++ b/src/devices/bus/coco/cococart.cpp @@ -450,7 +450,7 @@ image_init_result cococart_slot_device::call_load() while (read_length < cart_length) { - offs_t len = std::min(read_length, m_cart->get_cart_size() - read_length); + offs_t len = std::min(read_length, cart_length - read_length); memcpy(base + read_length, base, len); read_length += len; } |