diff options
author | Robert Göffringmann | 2005-04-27 02:16:34 +0000 |
---|---|---|
committer | Robert Göffringmann | 2005-04-27 02:16:34 +0000 |
commit | f28c3d14a3820fc835ac9473f55aa11640b07abc (patch) | |
tree | ef17f75af52e7a78d7d126801ffd9d7c53aa5a12 | |
parent | fc016e8e8a39e89460ec1f6d51489fca9af46872 (diff) | |
download | scummvm-rg350-f28c3d14a3820fc835ac9473f55aa11640b07abc.tar.gz scummvm-rg350-f28c3d14a3820fc835ac9473f55aa11640b07abc.tar.bz2 scummvm-rg350-f28c3d14a3820fc835ac9473f55aa11640b07abc.zip |
fixed filehandling bug
svn-id: r17830
-rw-r--r-- | sword1/resman.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sword1/resman.cpp b/sword1/resman.cpp index 1fe9cc4ca3..cfeafce330 100644 --- a/sword1/resman.cpp +++ b/sword1/resman.cpp @@ -104,6 +104,7 @@ void ResMan::loadCluDescript(const char *fileName) { cluster->file = NULL; cluster->noGrp = file.readUint32LE(); cluster->grp = new Grp[cluster->noGrp]; + cluster->nextOpen = NULL; memset(cluster->grp, 0, cluster->noGrp * sizeof(Grp)); cluster->refCount = 0; @@ -316,6 +317,7 @@ File *ResMan::resFile(uint32 id) { delete closeClu->file; closeClu->file = NULL; closeClu->nextOpen = NULL; + _openClus--; } } return cluster->file; |