diff options
author | 2015-06-01 00:29:10 +0200 | |
---|---|---|
committer | 2015-06-01 00:53:25 +0200 | |
commit | 7500669a194853266769f1cad42f7c9acf257e60 (patch) | |
tree | e1c4859efcf5e5a304a2e4197d3d542cf996db0d | |
parent | 8c109dc6b12f5238c030e6ddca2058367da33ff3 (diff) |
Fix save states in netlist. (nw)
-rw-r--r-- | src/emu/netlist/nl_lists.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/netlist/nl_lists.h b/src/emu/netlist/nl_lists.h index f7408177103..94726cad80f 100644 --- a/src/emu/netlist/nl_lists.h +++ b/src/emu/netlist/nl_lists.h @@ -128,9 +128,9 @@ public: // save state support & mame disasm - ATTR_COLD const entry_t *listptr() const { return &m_list[0]; } - ATTR_HOT int count() const { return m_end - m_list; } - ATTR_HOT const entry_t & operator[](const int & index) const { return m_list[index]; } + ATTR_COLD const entry_t *listptr() const { return &m_list[1]; } + ATTR_HOT int count() const { return m_end - &m_list[1]; } + ATTR_HOT const entry_t & operator[](const int & index) const { return m_list[1+index]; } #if (NL_KEEP_STATISTICS) // profiling |