From 9d9f9712cedd57afe345126b8fb3c8753945ef14 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 29 Apr 2013 10:41:28 +0200 Subject: TSAGE: Fix some non-initialized variables. CID 1002415, 1002416, 1002417, 1002418 --- engines/tsage/converse.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engines/tsage/converse.cpp b/engines/tsage/converse.cpp index ba27db9104..de5ac62425 100644 --- a/engines/tsage/converse.cpp +++ b/engines/tsage/converse.cpp @@ -42,6 +42,8 @@ SequenceManager::SequenceManager() : Action() { _objectIndex = 0; _keepActive = false; _onCallback = NULL; + for (int i = 0; i < 6; i ++) + _objectList[i] = NULL; setup(); } @@ -415,6 +417,8 @@ ConversationChoiceDialog::ConversationChoiceDialog() { _stdColor = 23; _highlightColor = g_globals->_scenePalette._colors.background; _fontNumber = 1; + _savedFgColor = _savedFontNumber = 0; + _selectedIndex = 0; } int ConversationChoiceDialog::execute(const Common::StringArray &choiceList) { @@ -587,6 +591,8 @@ StripManager::StripManager() { _activeSpeaker = NULL; _onBegin = NULL; _onEnd = NULL; + _sceneNumber = 0; + _lookupList = NULL; reset(); } @@ -932,6 +938,7 @@ Speaker::Speaker() : EventHandler() { _color1 = _color2 = _color3 = g_globals->_scenePalette._colors.foreground; _action = NULL; _speakerName = "SPEAKER"; + _oldSceneNumber = -1; } void Speaker::synchronize(Serializer &s) { -- cgit v1.2.3