aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/utils.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index ff3cd71d42..14388f7db3 100644
--- a/engines/fullpipe/utils.cpp
+++ b/engines/fullpipe/utils.cpp
@@ -129,14 +129,12 @@ bool MemoryObject::load(MfcArchive &file) {
void MemoryObject::loadFile(char *filename) {
if (!_data) {
- if (g_fullpipe->_currArchive != _libHandle) {
- assert(0);
- }
-
- Common::SeekableReadStream *s = _libHandle->createReadStreamForMember(filename);
+ Common::SeekableReadStream *s = g_fullpipe->_currArchive->createReadStreamForMember(filename);
if (s) {
assert(s->size() > 0);
+
+ debug(0, "Loading %s", filename);
_data = calloc(s->size(), 1);
s->read(_data, s->size());