diff options
Diffstat (limited to 'scumm/insane')
-rw-r--r-- | scumm/insane/insane.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scumm/insane/insane.cpp b/scumm/insane/insane.cpp index 6efa9229c6..32ceecc08e 100644 --- a/scumm/insane/insane.cpp +++ b/scumm/insane/insane.cpp @@ -586,15 +586,13 @@ int32 Insane::processKeyboard(void) { } void Insane::readFileToMem(const char *name, byte **buf) { - ScummFile *in; + ScummFile in; uint32 len; - in = new ScummFile(); - _vm->openFile(*in, name); - len = in->size(); + _vm->openFile(in, name); + len = in.size(); *buf = (byte *)malloc(len); - in->read(*buf, len); - in->close(); + in.read(*buf, len); } void Insane::startVideo(const char *filename, int num, int argC, int frameRate, |