From 47f03ddabce64099a202864d78cef772c117893b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 14 Nov 2015 18:39:52 +0100 Subject: fix uninitialized class members for bus devices (nw) --- src/devices/bus/odyssey2/rom.cpp | 10 ++++++---- src/devices/bus/odyssey2/slot.cpp | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/devices/bus/odyssey2') 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_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) { } -- cgit v1.2.3-70-g09d2