From f1e79aae73fd4878021ff0f3a27469e1ffa01541 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 30 Jul 2019 16:56:37 +0200 Subject: GLK: Pass picNum to format() for the pic%d.rect case as well. --- engines/glk/debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/glk') 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 -- cgit v1.2.3