[Scummvm-cvs-logs] SF.net SVN: scummvm: [30363] scummvm/trunk/engines/saga/saga.h

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Wed Jan 9 23:58:55 CET 2008


Revision: 30363
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30363&view=rev
Author:   thebluegr
Date:     2008-01-09 14:58:55 -0800 (Wed, 09 Jan 2008)

Log Message:
-----------
Change an error to a warning

Modified Paths:
--------------
    scummvm/trunk/engines/saga/saga.h

Modified: scummvm/trunk/engines/saga/saga.h
===================================================================
--- scummvm/trunk/engines/saga/saga.h	2008-01-09 22:03:51 UTC (rev 30362)
+++ scummvm/trunk/engines/saga/saga.h	2008-01-09 22:58:55 UTC (rev 30363)
@@ -399,7 +399,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