aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordreammaster2019-06-22 18:38:01 +0100
committerPaul Gilbert2019-06-22 14:40:50 -0700
commit62eb0be065cc2bd911d3e14f4b6356f3081b7817 (patch)
tree96532b3d12b894e664495201f5b7c5fefaa5e87c
parentd4075b188d9834c9901639f517aebf38ee584ee0 (diff)
downloadscummvm-rg350-62eb0be065cc2bd911d3e14f4b6356f3081b7817.tar.gz
scummvm-rg350-62eb0be065cc2bd911d3e14f4b6356f3081b7817.tar.bz2
scummvm-rg350-62eb0be065cc2bd911d3e14f4b6356f3081b7817.zip
GLK: ALAN2: Further gcc warning fixes
-rw-r--r--engines/glk/alan2/main.cpp2
-rw-r--r--engines/glk/alan2/rules.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/engines/glk/alan2/main.cpp b/engines/glk/alan2/main.cpp
index f0c2d0e73e..6732bfb791 100644
--- a/engines/glk/alan2/main.cpp
+++ b/engines/glk/alan2/main.cpp
@@ -1386,7 +1386,7 @@ static void openFiles() {
if (!f->open(txtfnm)) {
delete f;
Common::String s = Common::String::format("Can't open adventure text data file '%s'.", txtfnm);
- ::error(s.c_str());
+ ::error("%s", s.c_str());
}
// If logging open log file
diff --git a/engines/glk/alan2/rules.cpp b/engines/glk/alan2/rules.cpp
index 516b0d22fb..7b5729d677 100644
--- a/engines/glk/alan2/rules.cpp
+++ b/engines/glk/alan2/rules.cpp
@@ -55,7 +55,7 @@ void rules() {
if (pop()) {
change = TRUE;
ruls[i - 1].run = TRUE;
- if (trcflg)
+ if (trcflg) {
if (!stpflg)
printf(", Executing:>\n");
else {
@@ -63,6 +63,8 @@ void rules() {
debugsay(cur.loc);
printf("), Executing:>\n");
}
+ }
+
interpret(ruls[i - 1].stms);
} else if (trcflg && !stpflg)
printf(":>\n");