diff options
author | Johannes Schickel | 2009-01-18 16:49:03 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-01-18 16:49:03 +0000 |
commit | bf08c82054bfab7f3fc613ea63a224d5fd75e45a (patch) | |
tree | 3a07faac113e5a0908c5faf21446215182f79d88 /engines | |
parent | 98b3046c09d97186d0233e4138d2872462f3764f (diff) | |
download | scummvm-rg350-bf08c82054bfab7f3fc613ea63a224d5fd75e45a.tar.gz scummvm-rg350-bf08c82054bfab7f3fc613ea63a224d5fd75e45a.tar.bz2 scummvm-rg350-bf08c82054bfab7f3fc613ea63a224d5fd75e45a.zip |
Fixed bug in PAK link list code, now file links are correctly initialized.
svn-id: r35902
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/resource_intern.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/kyra/resource_intern.cpp b/engines/kyra/resource_intern.cpp index ebe874ae2f..1368b005c9 100644 --- a/engines/kyra/resource_intern.cpp +++ b/engines/kyra/resource_intern.cpp @@ -295,7 +295,11 @@ Common::Archive *ResLoaderPak::load(Common::SharedPtr<Common::ArchiveMember> mem 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)); } |