SWORD1: Remove redundant check.

We're doing assert() in the same function.
This commit is contained in:
Eugene Sandulenko 2016-05-14 11:44:36 +02:00
parent b83672070a
commit e482fd8a1a

View File

@ -327,13 +327,12 @@ Common::File *ResMan::resFile(uint32 id) {
Clu *closeClu = _openCluStart;
_openCluStart = _openCluStart->nextOpen;
if (closeClu) {
if (closeClu->file)
closeClu->file->close();
delete closeClu->file;
closeClu->file = NULL;
closeClu->nextOpen = NULL;
}
_openClus--;
}
}