diff options
author | Eugene Sandulenko | 2016-05-14 11:44:36 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-14 11:44:36 +0200 |
commit | e482fd8a1ab879a16a2a1781ccaa7521c02ca621 (patch) | |
tree | 980ca9be30fd7b98f731157335cbd217f7cb0ca3 /engines | |
parent | b83672070a5b0f22021baef0f5ac0889bb570a45 (diff) | |
download | scummvm-rg350-e482fd8a1ab879a16a2a1781ccaa7521c02ca621.tar.gz scummvm-rg350-e482fd8a1ab879a16a2a1781ccaa7521c02ca621.tar.bz2 scummvm-rg350-e482fd8a1ab879a16a2a1781ccaa7521c02ca621.zip |
SWORD1: Remove redundant check.
We're doing assert() in the same function.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword1/resman.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/sword1/resman.cpp b/engines/sword1/resman.cpp index 0a0324a67c..2f8b37d21c 100644 --- a/engines/sword1/resman.cpp +++ b/engines/sword1/resman.cpp @@ -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; - } + if (closeClu->file) + closeClu->file->close(); + delete closeClu->file; + closeClu->file = NULL; + closeClu->nextOpen = NULL; + _openClus--; } } |