From a98c5c3eb4998633fc684cd91a6a3d4c85e4701a Mon Sep 17 00:00:00 2001 From: thrust26 Date: Tue, 14 Jan 2020 11:23:39 +0100 Subject: [PATCH] fix #560 --- src/emucore/Control.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emucore/Control.hxx b/src/emucore/Control.hxx index 42b26a4a6..3647d1bc0 100644 --- a/src/emucore/Control.hxx +++ b/src/emucore/Control.hxx @@ -328,10 +328,10 @@ class Controller : public Serializable private: /// The boolean value on each digital pin - std::array myDigitalPinState{true}; + std::array myDigitalPinState{true, true, true, true, true}; /// The analog value on each analog pin - std::array myAnalogPinValue{MAX_RESISTANCE}; + std::array myAnalogPinValue{MAX_RESISTANCE, MAX_RESISTANCE}; private: // Following constructors and assignment operators not supported