From 98e53ece57b9d22fd1029e45a498625266206e6c Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 25 Oct 2019 08:41:40 +0200 Subject: GRIFFON: Fix uninitialized variables (game crash) --- engines/griffon/griffon.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/griffon') diff --git a/engines/griffon/griffon.cpp b/engines/griffon/griffon.cpp index 3fcd4e456a..03cf396234 100644 --- a/engines/griffon/griffon.cpp +++ b/engines/griffon/griffon.cpp @@ -58,6 +58,11 @@ GriffonEngine::GriffonEngine(OSystem *syst) : Engine(syst) { _objectInfo[i][j] = 0; } + for (int i = 0; i < 256; ++i) { + _objectFrame[i][0] = 0; + _objectFrame[i][1] = 0; + } + // Synchronize the sound settings from ScummVM syncSoundSettings(); config_load(&config); -- cgit v1.2.3