diff options
author | Filippos Karapetis | 2008-06-08 02:02:06 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-06-08 02:02:06 +0000 |
commit | b050430b41109d9ce9fabd3f1d98ad5dc4f54474 (patch) | |
tree | 0fc0a6eb03dec951acb37fda588874cc556a5120 /common | |
parent | ee1dfa3f3d75fbf28453b6cb3f55166ce88dbe2b (diff) | |
download | scummvm-rg350-b050430b41109d9ce9fabd3f1d98ad5dc4f54474.tar.gz scummvm-rg350-b050430b41109d9ce9fabd3f1d98ad5dc4f54474.tar.bz2 scummvm-rg350-b050430b41109d9ce9fabd3f1d98ad5dc4f54474.zip |
Don't attempt to close the arj file if it hasn't been opened
svn-id: r32608
Diffstat (limited to 'common')
-rw-r--r-- | common/unarj.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/unarj.cpp b/common/unarj.cpp index 942e659caa..f3ac20c285 100644 --- a/common/unarj.cpp +++ b/common/unarj.cpp @@ -289,6 +289,9 @@ bool ArjFile::open(const Common::String &filename, AccessMode mode) { } void ArjFile::close() { + if (!_isOpen) + return; + _isOpen = false; if (_fallBack) { |