From ae2ba18af360b5578eaa38ac7aacce3264f8d7bf Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 28 Jan 2015 07:47:28 +0100 Subject: MADE: Initialize some variables --- engines/made/database.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/made/database.cpp') diff --git a/engines/made/database.cpp b/engines/made/database.cpp index a9855ba1fe..3eab31acc2 100644 --- a/engines/made/database.cpp +++ b/engines/made/database.cpp @@ -252,6 +252,10 @@ byte *ObjectV3::getData() { GameDatabase::GameDatabase(MadeEngine *vm) : _vm(vm) { + _gameState = nullptr; + _gameStateSize = 0; + _mainCodeObjectIndex = 0; + _isRedSource = false; } GameDatabase::~GameDatabase() { @@ -595,6 +599,8 @@ const char *GameDatabaseV2::getString(uint16 offset) { /* GameDatabaseV3 */ GameDatabaseV3::GameDatabaseV3(MadeEngine *vm) : GameDatabase(vm) { + _gameText = nullptr; + _gameStateOffs = 0; } void GameDatabaseV3::load(Common::SeekableReadStream &sourceS) { -- cgit v1.2.3