aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-14 11:44:36 +0200
committerEugene Sandulenko2016-05-14 11:44:36 +0200
commite482fd8a1ab879a16a2a1781ccaa7521c02ca621 (patch)
tree980ca9be30fd7b98f731157335cbd217f7cb0ca3 /engines
parentb83672070a5b0f22021baef0f5ac0889bb570a45 (diff)
downloadscummvm-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.cpp13
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--;
}
}