From df1b2a99ce9273cac426b8250a2313da5d6f0690 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Mon, 9 Jan 2017 00:10:26 +0100 Subject: [PATCH] Fix invalid access in FrameManager. --- src/emucore/tia/FrameManager.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emucore/tia/FrameManager.cxx b/src/emucore/tia/FrameManager.cxx index 5af3a82ab..69599bcbf 100644 --- a/src/emucore/tia/FrameManager.cxx +++ b/src/emucore/tia/FrameManager.cxx @@ -45,6 +45,7 @@ static constexpr uInt32 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FrameManager::FrameManager() : myMode(TvMode::pal), + myVblankMode(VblankMode::floating), myYstart(0) { setTvMode(TvMode::ntsc); @@ -79,7 +80,7 @@ void FrameManager::reset() myStableVblankFrames = 0; myVblankViolated = false; - if (myVblankMode == VblankMode::locked) myVblankMode = VblankMode::floating; + if (myVblankMode != VblankMode::fixed) myVblankMode = VblankMode::floating; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -