From 4c6712246368148c91861fd30677a461e57e698b Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 8 May 2006 22:53:09 +0000 Subject: Avoid closing a video file in HE games twice svn-id: r22396 --- engines/scumm/he/animation_he.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines') diff --git a/engines/scumm/he/animation_he.cpp b/engines/scumm/he/animation_he.cpp index c7f9455a46..f1f78d6d78 100644 --- a/engines/scumm/he/animation_he.cpp +++ b/engines/scumm/he/animation_he.cpp @@ -155,6 +155,9 @@ int MoviePlayer::load(const char *filename, int flags, int image) { } void MoviePlayer::close() { + if (_fd.isOpen() == false) + return; + _fd.close(); free(_frameBuffer1); free(_frameBuffer2); -- cgit v1.2.3