diff options
Diffstat (limited to 'src/devices/bus/neogeo/rom.cpp')
-rw-r--r-- | src/devices/bus/neogeo/rom.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/bus/neogeo/rom.cpp b/src/devices/bus/neogeo/rom.cpp index 10c61858386..69e5bd81ae5 100644 --- a/src/devices/bus/neogeo/rom.cpp +++ b/src/devices/bus/neogeo/rom.cpp @@ -80,10 +80,11 @@ neogeo_vliner_cart_device::neogeo_vliner_cart_device(const machine_config &mconf void neogeo_vliner_cart_device::device_start() { - save_item(NAME(m_cart_ram)); + m_cart_ram = std::make_unique<uint16_t[]>(0x2000/2); + save_pointer(NAME(m_cart_ram.get()), 0x2000/2); } void neogeo_vliner_cart_device::device_reset() { - memset(m_cart_ram, 0, 0x2000); + std::fill(&m_cart_ram[0], &m_cart_ram[0x2000/2], 0); } |