aboutsummaryrefslogtreecommitdiff
path: root/engines/griffon
diff options
context:
space:
mode:
authorStrangerke2019-10-25 08:41:40 +0200
committerEugene Sandulenko2019-11-13 22:07:08 +0100
commit98e53ece57b9d22fd1029e45a498625266206e6c (patch)
tree48da4598d0f466e2e542e8ffe10db0344804fd80 /engines/griffon
parentc8dd272de836436011cb2b27b86dce1e8abc3807 (diff)
downloadscummvm-rg350-98e53ece57b9d22fd1029e45a498625266206e6c.tar.gz
scummvm-rg350-98e53ece57b9d22fd1029e45a498625266206e6c.tar.bz2
scummvm-rg350-98e53ece57b9d22fd1029e45a498625266206e6c.zip
GRIFFON: Fix uninitialized variables (game crash)
Diffstat (limited to 'engines/griffon')
-rw-r--r--engines/griffon/griffon.cpp5
1 files changed, 5 insertions, 0 deletions
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);