aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sludge/fileset.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sludge/fileset.cpp b/engines/sludge/fileset.cpp
index c9c3e7a43b..4f671ebbff 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());
}
}