[Scummvm-cvs-logs] SF.net SVN: scummvm:[44972] scummvm/trunk/engines/sci/engine/vm.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Mon Oct 12 12:09:25 CEST 2009
Revision: 44972
http://scummvm.svn.sourceforge.net/scummvm/?rev=44972&view=rev
Author: thebluegr
Date: 2009-10-12 10:09:25 +0000 (Mon, 12 Oct 2009)
Log Message:
-----------
Fixed a warning message under MSVC... seems like Common::String::printf does not work correctly when used on an empty string
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/vm.cpp
Modified: scummvm/trunk/engines/sci/engine/vm.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/vm.cpp 2009-10-12 09:43:53 UTC (rev 44971)
+++ scummvm/trunk/engines/sci/engine/vm.cpp 2009-10-12 10:09:25 UTC (rev 44972)
@@ -110,7 +110,8 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list