From 88e2350b8f0de7b98c2634c96d29ff2181bf3329 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 17 Oct 2017 22:40:32 -0400 Subject: [PATCH] Prevents undefined behaviour from the CPC's timer. --- Machines/AmstradCPC/AmstradCPC.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Machines/AmstradCPC/AmstradCPC.cpp b/Machines/AmstradCPC/AmstradCPC.cpp index 6b8e7f2b9..9ce328949 100644 --- a/Machines/AmstradCPC/AmstradCPC.cpp +++ b/Machines/AmstradCPC/AmstradCPC.cpp @@ -35,8 +35,6 @@ namespace AmstradCPC { */ class InterruptTimer { public: - InterruptTimer() : timer_(0), interrupt_request_(false) {} - /*! Indicates that a new hsync pulse has been recognised. This should be supplied on the falling edge of the CRTC HSYNC signal, which is the @@ -93,10 +91,10 @@ class InterruptTimer { } private: - int reset_counter_; - bool interrupt_request_; - bool last_interrupt_request_; - int timer_; + int reset_counter_ = 0; + bool interrupt_request_ = false; + bool last_interrupt_request_ = false; + int timer_ = 0; }; /*!