From 06f3dc29731cdfc0521929fb4c20c61e1d2c159d Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 16 May 2016 23:24:02 +0200 Subject: GNAP: Fix a couple of unintialized variables --- engines/gnap/gnap.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/gnap') diff --git a/engines/gnap/gnap.cpp b/engines/gnap/gnap.cpp index 21329fefee..a061be068c 100644 --- a/engines/gnap/gnap.cpp +++ b/engines/gnap/gnap.cpp @@ -97,6 +97,11 @@ GnapEngine::GnapEngine(OSystem *syst, const ADGameDescription *gd) : Engine::syncSoundSettings(); _scene = nullptr; _music = nullptr; + + _wasSavegameLoaded = false; + for (int i = 0; i < kMaxTimers; ++i) + _savedTimers[i] = _timers[i] = 0; + } GnapEngine::~GnapEngine() { -- cgit v1.2.3