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

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu Oct 21 01:58:34 CEST 2010


Revision: 53660
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53660&view=rev
Author:   fingolfin
Date:     2010-10-20 23:58:34 +0000 (Wed, 20 Oct 2010)

Log Message:
-----------
SAGA: Fix warning: comparison of unsigned expression < 0 is always false

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

Modified: scummvm/trunk/engines/saga/saga.h
===================================================================
--- scummvm/trunk/engines/saga/saga.h	2010-10-20 22:36:50 UTC (rev 53659)
+++ scummvm/trunk/engines/saga/saga.h	2010-10-20 23:58:34 UTC (rev 53660)
@@ -385,7 +385,7 @@
 	Common::Array<char *> strings;
 
 	const char *getString(uint index) const {
-		if ((strings.size() <= index) || (index < 0)) {
+		if (strings.size() <= index) {
 			// This occurs at the end of Ted's chapter, right after the ending cutscene
 			warning("StringsTable::getString wrong index 0x%X (%d)", index, strings.size());
 			return "";


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