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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Jan 18 17:49:06 CET 2009


Revision: 35902
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35902&view=rev
Author:   lordhoto
Date:     2009-01-18 16:49:03 +0000 (Sun, 18 Jan 2009)

Log Message:
-----------
Fixed bug in PAK link list code, now file links are correctly initialized.

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

Modified: scummvm/trunk/engines/kyra/resource_intern.cpp
===================================================================
--- scummvm/trunk/engines/kyra/resource_intern.cpp	2009-01-18 16:41:35 UTC (rev 35901)
+++ scummvm/trunk/engines/kyra/resource_intern.cpp	2009-01-18 16:49:03 UTC (rev 35902)
@@ -295,7 +295,11 @@
 
 			for (uint j = 0; j < sources; ++j) {
 				Common::String dest = readString(stream);
-				files.push_back(*iter);
+
+				PlainArchive::InputEntry link = *iter;
+				link.name = dest;
+				files.push_back(link);
+
 				// Better safe than sorry, we update the 'iter' value, in case push_back invalidated it
 				iter = Common::find_if(files.begin(), files.end(), PlainArchiveListSearch(linksTo));
 			}


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