[Scummvm-git-logs] scummvm master -> b428c23c75efae41fa7d907f5676faf05bc338e0
bluegr
bluegr at gmail.com
Mon Jun 17 22:08:05 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b428c23c75 SLUDGE: fix crash in ResourceManager::readResourceNames
Commit: b428c23c75efae41fa7d907f5676faf05bc338e0
https://github.com/scummvm/scummvm/commit/b428c23c75efae41fa7d907f5676faf05bc338e0
Author: Sebastian Krzyszkowiak (dos at dosowisko.net)
Date: 2019-06-17T23:08:00+03:00
Commit Message:
SLUDGE: fix crash in ResourceManager::readResourceNames
Changed paths:
engines/sludge/fileset.cpp
diff --git a/engines/sludge/fileset.cpp b/engines/sludge/fileset.cpp
index c9c3e7a..4f671eb 100644
--- a/engines/sludge/fileset.cpp
+++ b/engines/sludge/fileset.cpp
@@ -224,8 +224,7 @@ void ResourceManager::readResourceNames(Common::SeekableReadStream *readStream)
_allResourceNames.reserve(numResourceNames);
for (int fn = 0; fn < numResourceNames; fn++) {
- _allResourceNames[fn].clear();
- _allResourceNames[fn] = readString(readStream);
+ _allResourceNames.push_back(readString(readStream));
debugC(2, kSludgeDebugDataLoad, "Resource %i: %s", fn, _allResourceNames[fn].c_str());
}
}
More information about the Scummvm-git-logs
mailing list