diff options
author | 2015-11-14 18:39:52 +0100 | |
---|---|---|
committer | 2015-11-14 19:05:20 +0100 | |
commit | 47f03ddabce64099a202864d78cef772c117893b (patch) | |
tree | 93bb79a8e97d1374e8eaa5ea5a44abfee22ab888 /src/devices/bus/odyssey2 | |
parent | 61d05aacb8e680d998ffccd9306b859555db5d26 (diff) |
fix uninitialized class members for bus devices (nw)
Diffstat (limited to 'src/devices/bus/odyssey2')
-rw-r--r-- | src/devices/bus/odyssey2/rom.cpp | 10 | ||||
-rw-r--r-- | src/devices/bus/odyssey2/slot.cpp | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/devices/bus/odyssey2/rom.cpp b/src/devices/bus/odyssey2/rom.cpp index 2e364e59b9c..649e5992f65 100644 --- a/src/devices/bus/odyssey2/rom.cpp +++ b/src/devices/bus/odyssey2/rom.cpp @@ -23,15 +23,17 @@ const device_type O2_ROM_16K = &device_creator<o2_rom16_device>; o2_rom_device::o2_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) - : device_t(mconfig, type, name, tag, owner, clock, shortname, source), - device_o2_cart_interface( mconfig, *this ) + : device_t(mconfig, type, name, tag, owner, clock, shortname, source), + device_o2_cart_interface(mconfig, *this), + m_bank_base(0) { } o2_rom_device::o2_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, O2_ROM_STD, "Odyssey 2 Standard Carts", tag, owner, clock, "o2_rom", __FILE__), - device_o2_cart_interface( mconfig, *this ) -{ + device_o2_cart_interface( mconfig, *this ), + m_bank_base(0) + { } o2_rom12_device::o2_rom12_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) diff --git a/src/devices/bus/odyssey2/slot.cpp b/src/devices/bus/odyssey2/slot.cpp index 72262afe7ac..caf68a0d4e2 100644 --- a/src/devices/bus/odyssey2/slot.cpp +++ b/src/devices/bus/odyssey2/slot.cpp @@ -76,7 +76,7 @@ o2_cart_slot_device::o2_cart_slot_device(const machine_config &mconfig, const ch device_t(mconfig, O2_CART_SLOT, "Odyssey 2 Cartridge Slot", tag, owner, clock, "o2_cart_slot", __FILE__), device_image_interface(mconfig, *this), device_slot_interface(mconfig, *this), - m_type(O2_STD) + m_type(O2_STD), m_cart(nullptr) { } |