aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/gnap/datarchive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gnap/datarchive.cpp b/engines/gnap/datarchive.cpp
index 7f5dadfe9b..a0423c1f29 100644
--- a/engines/gnap/datarchive.cpp
+++ b/engines/gnap/datarchive.cpp
@@ -61,7 +61,7 @@ byte *DatArchive::load(int index) {
_fd->seek(_entries[index]._ofs);
debug(1, "_entries[index].outSize2: %d; _entries[index].outSize1: %d", _entries[index]._outSize2, _entries[index]._outSize1);
byte *buffer = new byte[_entries[index]._outSize1];
- if (!Common::decompressDCL(_fd, buffer, 0, _entries[index]._outSize1))
+ if (!Common::decompressDCL(_fd, buffer, _entries[index]._outSize2, _entries[index]._outSize1))
error("DatArchive::load() Error during decompression of entry %d", index);
return buffer;
}