mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
fixed filehandling bug
svn-id: r17830
This commit is contained in:
parent
fc016e8e8a
commit
f28c3d14a3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user