summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/c64/neoram.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/bus/c64/neoram.h')
-rw-r--r--src/emu/bus/c64/neoram.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/bus/c64/neoram.h b/src/emu/bus/c64/neoram.h
index ea42810f5c6..aa173423ce5 100644
--- a/src/emu/bus/c64/neoram.h
+++ b/src/emu/bus/c64/neoram.h
@@ -41,8 +41,8 @@ protected:
// device_nvram_interface overrides
virtual void nvram_default() { }
- virtual void nvram_read(emu_file &file) { if (m_nvram != NULL) { file.read(m_nvram, m_nvram_size); } }
- virtual void nvram_write(emu_file &file) { if (m_nvram != NULL) { file.write(m_nvram, m_nvram_size); } }
+ virtual void nvram_read(emu_file &file) { if (m_nvram != NULL) { file.read(m_nvram, m_nvram.bytes()); } }
+ virtual void nvram_write(emu_file &file) { if (m_nvram != NULL) { file.write(m_nvram, m_nvram.bytes()); } }
// device_c64_expansion_card_interface overrides
virtual UINT8 c64_cd_r(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2);