aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/kyra_v2.cpp12
-rw-r--r--engines/kyra/sequences_v2.cpp5
2 files changed, 17 insertions, 0 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp
index 5a693f1c08..61b5c00c7c 100644
--- a/engines/kyra/kyra_v2.cpp
+++ b/engines/kyra/kyra_v2.cpp
@@ -100,8 +100,20 @@ KyraEngine_v2::KyraEngine_v2(OSystem *system, const GameFlags &flags) : KyraEngi
_colorCodeFlag2 = -1;
_scriptCountDown = 0;
+ _gamePlayBuffer = 0;
+ _unkBuf500Bytes = 0;
+ _screenBuffer = 0;
+ _unkBuf200kByte = 0;
+ memset(&_defaultShapeTable, 0, sizeof(_defaultShapeTable));
+ memset(&_sceneShapeTable, 0, sizeof(_sceneShapeTable));
memset(&_sceneScriptData, 0, sizeof(_sceneScriptData));
+ _talkObjectList = 0;
+ _shapeDescTable = 0;
+ _gfxBackUpRect = 0;
+ _sceneList = 0;
+ memset(&_sceneAnimMovie, 0, sizeof(_sceneAnimMovie));
+ memset(&_wsaSlots, 0, sizeof(_wsaSlots));
_backUpButtonList = _unknownButtonList = _buttonList = 0;
memset(&_buttonShapes, 0, sizeof(_buttonShapes));
diff --git a/engines/kyra/sequences_v2.cpp b/engines/kyra/sequences_v2.cpp
index 194b386ca8..e14e78bc42 100644
--- a/engines/kyra/sequences_v2.cpp
+++ b/engines/kyra/sequences_v2.cpp
@@ -2638,6 +2638,11 @@ void KyraEngine_v2::seq_uninit() {
delete [] _demoShapeDefs;
_demoShapeDefs = 0;
}
+
+ delete [] _newShapeFiledata;
+ _newShapeFiledata = 0;
+
+ memset(&_defaultShapeTable, 0, sizeof(_defaultShapeTable));
}
#pragma mark -