aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-04-20 08:10:00 +0200
committerEugene Sandulenko2016-04-20 08:10:00 +0200
commit4007a6973a63ad5a8510b1f5c3f28a5dc868ca81 (patch)
treedf9cde8956a4e75f60f17e3e150ff7331ac16058
parent7861efb7ce2a571a92fe1ce70f118702233b9735 (diff)
downloadscummvm-rg350-4007a6973a63ad5a8510b1f5c3f28a5dc868ca81.tar.gz
scummvm-rg350-4007a6973a63ad5a8510b1f5c3f28a5dc868ca81.tar.bz2
scummvm-rg350-4007a6973a63ad5a8510b1f5c3f28a5dc868ca81.zip
WAGE: Fix warnings
-rw-r--r--engines/wage/debugger.cpp2
-rw-r--r--engines/wage/macwindow.cpp1
-rw-r--r--engines/wage/macwindowmanager.cpp2
-rw-r--r--engines/wage/wage.cpp1
4 files changed, 5 insertions, 1 deletions
diff --git a/engines/wage/debugger.cpp b/engines/wage/debugger.cpp
index 7d01b0b85e..d34aca7d49 100644
--- a/engines/wage/debugger.cpp
+++ b/engines/wage/debugger.cpp
@@ -56,7 +56,7 @@ static int strToInt(const char *s) {
}
bool Debugger::Cmd_ListScenes(int argc, const char **argv) {
- int currentScene;
+ int currentScene = 0;
for (uint i = 1; i < _engine->_world->_orderedScenes.size(); i++) { // #0 is STORAGE@
if (_engine->_world->_player->_currentScene == _engine->_world->_orderedScenes[i])
diff --git a/engines/wage/macwindow.cpp b/engines/wage/macwindow.cpp
index 1b869fa222..f629e3ef8e 100644
--- a/engines/wage/macwindow.cpp
+++ b/engines/wage/macwindow.cpp
@@ -57,6 +57,7 @@ namespace Wage {
MacWindow::MacWindow(int id, bool scrollable) : _scrollable(scrollable), _id(id) {
_active = false;
_borderIsDirty = true;
+ _contentIsDirty = true;
_highlightedPart = kBorderNone;
diff --git a/engines/wage/macwindowmanager.cpp b/engines/wage/macwindowmanager.cpp
index 3fbd156d06..8ce39b25b5 100644
--- a/engines/wage/macwindowmanager.cpp
+++ b/engines/wage/macwindowmanager.cpp
@@ -62,6 +62,8 @@ MacWindowManager::MacWindowManager() {
_screen = 0;
_lastId = 0;
_activeWindow = -1;
+
+ _fullRefresh = true;
}
MacWindowManager::~MacWindowManager() {
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp
index 73794f7afd..278badd616 100644
--- a/engines/wage/wage.cpp
+++ b/engines/wage/wage.cpp
@@ -86,6 +86,7 @@ WageEngine::WageEngine(OSystem *syst, const ADGameDescription *desc) : Engine(sy
_offer = NULL;
_resManager = NULL;
+ _debugger = NULL;
debug("WageEngine::WageEngine()");
}