From 3fb752db15d2d835fcf8849fd65bb4e1ef7df759 Mon Sep 17 00:00:00 2001
From: Stephen Anthony <sa666666@gmail.com>
Date: Sat, 18 Jan 2020 21:17:39 -0330
Subject: [PATCH] A little too eager with code pruning.

---
 src/emucore/CartMDM.cxx | 3 ++-
 src/emucore/CartSB.cxx  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/emucore/CartMDM.cxx b/src/emucore/CartMDM.cxx
index 7eaca526e..e76526b47 100644
--- a/src/emucore/CartMDM.cxx
+++ b/src/emucore/CartMDM.cxx
@@ -21,7 +21,8 @@
 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 CartridgeMDM::CartridgeMDM(const ByteBuffer& image, size_t size,
                            const string& md5, const Settings& settings)
-  : Cartridge(settings, md5)
+  : Cartridge(settings, md5),
+    mySize(size)
 {
   // Allocate array for the ROM image
   myImage = make_unique<uInt8[]>(mySize);
diff --git a/src/emucore/CartSB.cxx b/src/emucore/CartSB.cxx
index 4c582c91c..796ecfcdf 100644
--- a/src/emucore/CartSB.cxx
+++ b/src/emucore/CartSB.cxx
@@ -21,7 +21,8 @@
 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 CartridgeSB::CartridgeSB(const ByteBuffer& image, size_t size,
                          const string& md5, const Settings& settings)
-  : Cartridge(settings, md5)
+  : Cartridge(settings, md5),
+    mySize(size)
 {
   // Allocate array for the ROM image
   myImage = make_unique<uInt8[]>(mySize);