From 469d1777c4bec387de80a918e5c5f976026a0813 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 13 Jul 2017 18:48:48 +0200 Subject: SLUDGE: Fix more warnings --- engines/sludge/loadsave.cpp | 2 +- engines/sludge/main_loop.cpp | 2 +- 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"); } -- cgit v1.2.3