aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-10-18 16:11:54 +0300
committerEugene Sandulenko2013-10-18 16:11:54 +0300
commit7ef9798fd402acb0d6e231dfda6282cc286fab5d (patch)
treecb44e2fd4453e500e050ba1edabadac966db6d82 /engines
parentfee20ebe31ca687e6198d51a858f8b6bd9fc190a (diff)
downloadscummvm-rg350-7ef9798fd402acb0d6e231dfda6282cc286fab5d.tar.gz
scummvm-rg350-7ef9798fd402acb0d6e231dfda6282cc286fab5d.tar.bz2
scummvm-rg350-7ef9798fd402acb0d6e231dfda6282cc286fab5d.zip
TOUCHE: Initialize uninit variables. CID 1002423
Diffstat (limited to 'engines')
-rw-r--r--engines/touche/touche.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp
index 5c133ccbc6..89cc1ad5af 100644
--- a/engines/touche/touche.cpp
+++ b/engines/touche/touche.cpp
@@ -51,6 +51,28 @@ ToucheEngine::ToucheEngine(OSystem *system, Common::Language language)
_saveLoadCurrentSlot = 0;
_hideInventoryTexts = false;
+ _numOpcodes = 0;
+ _compressedSpeechData = 0;
+ _textData = 0;
+ _backdropBuffer = 0;
+ _menuKitData = 0;
+ _convKitData = 0;
+
+ for (int i = 0; i < NUM_SEQUENCES; i++)
+ _sequenceDataTable[i] = 0;
+
+ _programData = 0;
+ _programDataSize = 0;
+ _mouseData = 0;
+ _iconData = 0;
+ _currentBitmapWidth = 0;
+ _currentBitmapHeight = 0;
+ _currentImageWidth = 0;
+ _currentImageHeight = 0;
+ _roomWidth = 0;
+ _programTextDataPtr = 0;
+ _offscreenBuffer = 0;
+
_screenRect = Common::Rect(kScreenWidth, kScreenHeight);
_roomAreaRect = Common::Rect(kScreenWidth, kRoomHeight);