aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-12 10:09:25 +0000
committerFilippos Karapetis2009-10-12 10:09:25 +0000
commite8deac29a5bacdb82f96a82f5cdcf1881055a0a5 (patch)
tree1eba627363b96403bb844e7c0419f2dac815f22b /engines
parentb6be6ae7a946773fd32a5ed8d372294cb72824b4 (diff)
downloadscummvm-rg350-e8deac29a5bacdb82f96a82f5cdcf1881055a0a5.tar.gz
scummvm-rg350-e8deac29a5bacdb82f96a82f5cdcf1881055a0a5.tar.bz2
scummvm-rg350-e8deac29a5bacdb82f96a82f5cdcf1881055a0a5.zip
Fixed a warning message under MSVC... seems like Common::String::printf does not work correctly when used on an empty string
svn-id: r44972
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/vm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index e6a5dd72d3..6f6dc3420a 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -110,7 +110,8 @@ static int validate_variable(reg_t *r, reg_t *stack_base, int type, int max, int
const char *names[4] = {"global", "local", "temp", "param"};
if (index < 0 || index >= max) {
- Common::String txt = Common::String::printf("[VM] validate_variable(): Attempt to use invalid %s variable %04x ", names[type], index);
+ Common::String txt = "[VM] Attempt to use invalid " +
+ Common::String::printf("%s variable %04x ", names[type], index);
if (max == 0)
txt += "(variable type invalid)";
else