Fixed ROM fill routine

This commit is contained in:
tim lindner 2020-04-30 17:34:45 -07:00
parent 8cc41c96e5
commit 6e90aa90fd

View File

@ -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;
}