[Scummvm-cvs-logs] SF.net SVN: scummvm: [32076] scummvm/trunk/engines/kyra/staticres.cpp

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Tue May 13 00:13:33 CEST 2008


Revision: 32076
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32076&view=rev
Author:   athrxx
Date:     2008-05-12 15:13:33 -0700 (Mon, 12 May 2008)

Log Message:
-----------
remove useless double check on sound list entries

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/staticres.cpp

Modified: scummvm/trunk/engines/kyra/staticres.cpp
===================================================================
--- scummvm/trunk/engines/kyra/staticres.cpp	2008-05-12 21:52:44 UTC (rev 32075)
+++ scummvm/trunk/engines/kyra/staticres.cpp	2008-05-12 22:13:33 UTC (rev 32076)
@@ -1226,12 +1226,10 @@
 		tmpSndLst[i] = new char[len + 1];
 		tmpSndLst[i][0] = 0;
 
-		if (tlkfiles && strlen(seqSoundList[i])) {
+		if (tlkfiles && len > 1) {
 			for (int ii = 0; ii < tmpSize; ii++) {
-				if (strlen(seqSoundList[i])) {
-					if (!scumm_stricmp(&seqSoundList[i][1], &tlkfiles[ii][1]))
+				if (!scumm_stricmp(&seqSoundList[i][1], &tlkfiles[ii][1]))
 						strcpy(tmpSndLst[i], tlkfiles[ii]);
-				}
 			}
 		}
 


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