[Scummvm-cvs-logs] SF.net SVN: scummvm: [26818] scummvm/trunk/engines/touche/resource.cpp

cyx at users.sourceforge.net cyx at users.sourceforge.net
Sun May 13 04:07:55 CEST 2007


Revision: 26818
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26818&view=rev
Author:   cyx
Date:     2007-05-12 19:07:54 -0700 (Sat, 12 May 2007)

Log Message:
-----------
this should trigger invalid resource types loads, if that ever happens

Modified Paths:
--------------
    scummvm/trunk/engines/touche/resource.cpp

Modified: scummvm/trunk/engines/touche/resource.cpp
===================================================================
--- scummvm/trunk/engines/touche/resource.cpp	2007-05-13 00:47:35 UTC (rev 26817)
+++ scummvm/trunk/engines/touche/resource.cpp	2007-05-13 02:07:54 UTC (rev 26818)
@@ -193,8 +193,8 @@
 
 	const ResourceData *rd = NULL;
 	for (unsigned int i = 0; i < ARRAYSIZE(dataTypesTable); ++i) {
-		rd = &dataTypesTable[i];
-		if (rd->type == type) {
+		if (dataTypesTable[i].type == type) {
+			rd = &dataTypesTable[i];
 			break;
 		}
 	}


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