From 7ef9798fd402acb0d6e231dfda6282cc286fab5d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 18 Oct 2013 16:11:54 +0300 Subject: TOUCHE: Initialize uninit variables. CID 1002423 --- engines/touche/touche.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'engines') 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); -- cgit v1.2.3