aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
}