From ef10482291e438b4d9e063045edd8faf9694e45e Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Thu, 19 Dec 2019 18:32:40 +0100 Subject: [PATCH] Don't try to access the palette before it has been initialized. --- src/emucore/tia/TIA.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emucore/tia/TIA.cxx b/src/emucore/tia/TIA.cxx index 92c4f3073..35890ec60 100644 --- a/src/emucore/tia/TIA.cxx +++ b/src/emucore/tia/TIA.cxx @@ -185,8 +185,8 @@ void TIA::reset() // Must be done last, after all other items have reset bool devSettings = mySettings.getBool("dev.settings"); - enableFixedColors(mySettings.getBool(devSettings ? "dev.debugcolors" : "plr.debugcolors")); setFixedColorPalette(mySettings.getString("tia.dbgcolors")); + enableFixedColors(mySettings.getBool(devSettings ? "dev.debugcolors" : "plr.debugcolors")); #ifdef DEBUGGER_SUPPORT createAccessBase();