[Scummvm-cvs-logs] SF.net SVN: scummvm:[47704] scummvm/trunk/engines/sci/engine/vm.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Jan 30 08:11:38 CET 2010


Revision: 47704
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47704&view=rev
Author:   thebluegr
Date:     2010-01-30 07:11:38 +0000 (Sat, 30 Jan 2010)

Log Message:
-----------
Silenced a very annoying warning

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/vm.cpp

Modified: scummvm/trunk/engines/sci/engine/vm.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/vm.cpp	2010-01-30 07:03:45 UTC (rev 47703)
+++ scummvm/trunk/engines/sci/engine/vm.cpp	2010-01-30 07:11:38 UTC (rev 47704)
@@ -119,14 +119,14 @@
 		else
 			txt += Common::String::printf("(out of range [%d..%d])", 0, max - 1);
 
-		warning("%s", txt.c_str());
-
 		if (type == VAR_PARAM || type == VAR_TEMP) {
 			int total_offset = r - stack_base;
 			if (total_offset < 0 || total_offset >= VM_STACK_SIZE) {
+				warning("%s", txt.c_str());
 				warning("[VM] Access would be outside even of the stack (%d); access denied", total_offset);
 				return false;
 			} else {
+				debugC(2, kDebugLevelVM, txt.c_str());
 				debugC(2, kDebugLevelVM, "[VM] Access within stack boundaries; access granted.\n");
 				return true;
 			}


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