aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge
diff options
context:
space:
mode:
authorEugene Sandulenko2017-07-13 18:48:48 +0200
committerEugene Sandulenko2017-07-13 18:48:48 +0200
commit469d1777c4bec387de80a918e5c5f976026a0813 (patch)
tree1c635bf25a970ce7c30b77f6687cc41e53ad07d2 /engines/sludge
parent2b0cbd3c7ea3aa27b675324cc833d13894a4d623 (diff)
downloadscummvm-rg350-469d1777c4bec387de80a918e5c5f976026a0813.tar.gz
scummvm-rg350-469d1777c4bec387de80a918e5c5f976026a0813.tar.bz2
scummvm-rg350-469d1777c4bec387de80a918e5c5f976026a0813.zip
SLUDGE: Fix more warnings
Diffstat (limited to 'engines/sludge')
-rw-r--r--engines/sludge/loadsave.cpp2
-rw-r--r--engines/sludge/main_loop.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sludge/loadsave.cpp b/engines/sludge/loadsave.cpp
index eb2cc61c90..72b1a9aad8 100644
--- a/engines/sludge/loadsave.cpp
+++ b/engines/sludge/loadsave.cpp
@@ -556,7 +556,7 @@ bool loadGame(const Common::String &fname) {
fp->readByte(); // updateDisplay (part of movie playing)
bool fontLoaded = fp->readByte();
- int fontNum;
+ int fontNum = 0;
Common::String charOrder = "";
if (fontLoaded) {
fontNum = fp->readUint16BE();
diff --git a/engines/sludge/main_loop.cpp b/engines/sludge/main_loop.cpp
index 3676a3bcdb..614d3a930e 100644
--- a/engines/sludge/main_loop.cpp
+++ b/engines/sludge/main_loop.cpp
@@ -71,8 +71,8 @@ Graphics::Surface renderSurface;
int dialogValue = 0;
void setGameFilePath(char *f) {
- char currentDir[1000];
#if 0
+ char currentDir[1000];
if (!getcwd(currentDir, 998)) {
debugOut("Can't get current directory.\n");
}