summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/drivers/system1.cpp4
-rw-r--r--src/mame/includes/system1.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/src/mame/drivers/system1.cpp b/src/mame/drivers/system1.cpp
index 8ee8cd8f2bd..17ad4b0ad75 100644
--- a/src/mame/drivers/system1.cpp
+++ b/src/mame/drivers/system1.cpp
@@ -4963,20 +4963,16 @@ ROM_END
DRIVER_INIT_MEMBER(system1_state,bank00)
{
- m_videomode_custom = nullptr;
- m_banked_decrypted_opcodes = nullptr;
}
DRIVER_INIT_MEMBER(system1_state,bank44)
{
m_videomode_custom = &system1_state::bank44_custom_w;
- m_banked_decrypted_opcodes = nullptr;
}
DRIVER_INIT_MEMBER(system1_state,bank0c)
{
m_videomode_custom = &system1_state::bank0c_custom_w;
- m_banked_decrypted_opcodes = nullptr;
}
DRIVER_INIT_MEMBER(system1_state,sega315_5033)
diff --git a/src/mame/includes/system1.h b/src/mame/includes/system1.h
index a1aee2f3388..0c97c03d5ed 100644
--- a/src/mame/includes/system1.h
+++ b/src/mame/includes/system1.h
@@ -14,6 +14,7 @@ public:
m_nob_mcu_latch(*this, "nob_mcu_latch"),
m_nob_mcu_status(*this, "nob_mcu_status"),
m_paletteram(*this, "palette"),
+ m_videomode_custom(nullptr),
m_maincpu(*this, "maincpu"),
m_soundcpu(*this, "soundcpu"),
m_mcu(*this, "mcu"),
@@ -25,7 +26,9 @@ public:
m_color_prom(*this, "palette"),
m_bank1(*this, "bank1"),
m_bank0d(*this, "bank0d"),
- m_bank1d(*this, "bank1d") { }
+ m_bank1d(*this, "bank1d"),
+ m_banked_decrypted_opcodes(nullptr)
+ { }
optional_device<i8255_device> m_ppi8255;
required_shared_ptr<UINT8> m_ram;