aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index c1cf912de6..3b60e962c6 100644
--- a/engines/fullpipe/utils.cpp
+++ b/engines/fullpipe/utils.cpp
@@ -49,7 +49,7 @@ bool ObArray::load(MfcArchive &file) {
debugC(5, kDebugLoading, "ObArray::load()");
int count = file.readCount();
- resize(count);
+ reserve(count);
for (int i = 0; i < count; i++) {
CObject *t = file.readClass<CObject>();
@@ -66,7 +66,7 @@ bool DWordArray::load(MfcArchive &file) {
debugC(9, kDebugLoading, "DWordArray::count: %d", count);
- resize(count);
+ reserve(count);
for (int i = 0; i < count; i++) {
int32 t = file.readSint32LE();