[Scummvm-cvs-logs] SF.net SVN: scummvm: [30364] scummvm/branches/branch-0-11-0/engines/saga/ saga.h

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Jan 10 00:00:54 CET 2008


Revision: 30364
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30364&view=rev
Author:   thebluegr
Date:     2008-01-09 15:00:54 -0800 (Wed, 09 Jan 2008)

Log Message:
-----------
(backport) Change an error to a warning

Modified Paths:
--------------
    scummvm/branches/branch-0-11-0/engines/saga/saga.h

Modified: scummvm/branches/branch-0-11-0/engines/saga/saga.h
===================================================================
--- scummvm/branches/branch-0-11-0/engines/saga/saga.h	2008-01-09 22:58:55 UTC (rev 30363)
+++ scummvm/branches/branch-0-11-0/engines/saga/saga.h	2008-01-09 23:00:54 UTC (rev 30364)
@@ -404,7 +404,9 @@
 
 	const char *getString(int index) const {
 		if ((stringsCount <= index) || (index < 0)) {
-			error("StringList::getString wrong index 0x%X (%d)", index, stringsCount);
+			// This occurs at the end of Ted's chapter, right after the ending cutscene
+			warning("StringList::getString wrong index 0x%X (%d)", index, stringsCount);
+			return "";
 		}
 		return strings[index];
 	}


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