diff --git a/src/emucore/MT24LC256.cxx b/src/emucore/MT24LC256.cxx index b99f2ec2a..15cbfae96 100644 --- a/src/emucore/MT24LC256.cxx +++ b/src/emucore/MT24LC256.cxx @@ -59,6 +59,7 @@ MT24LC256::MT24LC256(const FilesystemNode& eepromfile, const System& system, catch(...) { myDataFileExists = false; + myData = make_unique(FLASH_SIZE); } // Then initialize the I2C state