aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
authorTorbjörn Andersson2019-07-30 16:56:37 +0200
committerTorbjörn Andersson2019-07-30 16:56:37 +0200
commitf1e79aae73fd4878021ff0f3a27469e1ffa01541 (patch)
treecdfd7aa6c07b20352b48904e50eb433a9926e5a2 /engines/glk
parent041132f5f6fc5ae5977f0d6916f54533df745a50 (diff)
downloadscummvm-rg350-f1e79aae73fd4878021ff0f3a27469e1ffa01541.tar.gz
scummvm-rg350-f1e79aae73fd4878021ff0f3a27469e1ffa01541.tar.bz2
scummvm-rg350-f1e79aae73fd4878021ff0f3a27469e1ffa01541.zip
GLK: Pass picNum to format() for the pic%d.rect case as well.
Diffstat (limited to 'engines/glk')
-rw-r--r--engines/glk/debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/debugger.cpp b/engines/glk/debugger.cpp
index 2f13f6bfbd..5978ddb486 100644
--- a/engines/glk/debugger.cpp
+++ b/engines/glk/debugger.cpp
@@ -75,7 +75,7 @@ bool Debugger::cmdDumpPic(int argc, const char **argv) {
} else {
debugPrintf("Could not find specified picture\n");
}
- } else if (f.exists(Common::String::format("pic%d.rect"))) {
+ } else if (f.exists(Common::String::format("pic%d.rect", picNum))) {
debugPrintf("Picture is only a placeholder rectangle\n");
} else if (f.open(Common::String::format("pic%d.raw", picNum))) {
// Raw picture