diff options
Diffstat (limited to 'sword1/objectman.cpp')
-rw-r--r-- | sword1/objectman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sword1/objectman.cpp b/sword1/objectman.cpp index 94fa4b65dd..a2f0881c9e 100644 --- a/sword1/objectman.cpp +++ b/sword1/objectman.cpp @@ -65,7 +65,7 @@ void ObjectMan::megaLeaving(uint16 section, int id) { error("mega %d is leaving empty section %d", id, section); _liveList[section]--; if ((_liveList[section] == 0) && (id != PLAYER)) { - _resMan->resClose(_liveList[section]); + _resMan->resClose(_objectList[section]); _cptData[section] = NULL; } /* if the player is leaving the section then we have to close the resources after |