DIRECTOR: Lingo: Fix crash at the quit

This commit is contained in:
Eugene Sandulenko 2016-08-21 09:37:23 +02:00
parent bad8605014
commit 9f05f7821e

View File

@ -59,7 +59,11 @@ bool Archive::openFile(const Common::String &fileName) {
void Archive::close() { void Archive::close() {
_types.clear(); _types.clear();
delete _stream; _stream = 0;
if (_stream)
delete _stream;
_stream = 0;
} }
bool Archive::hasResource(uint32 tag, uint16 id) const { bool Archive::hasResource(uint32 tag, uint16 id) const {