diff options
author | Filippos Karapetis | 2009-10-12 10:09:25 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-10-12 10:09:25 +0000 |
commit | e8deac29a5bacdb82f96a82f5cdcf1881055a0a5 (patch) | |
tree | 1eba627363b96403bb844e7c0419f2dac815f22b /engines | |
parent | b6be6ae7a946773fd32a5ed8d372294cb72824b4 (diff) | |
download | scummvm-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.cpp | 3 |
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 |