aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/lol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/lol.cpp')
-rw-r--r--engines/kyra/lol.cpp21
1 files changed, 6 insertions, 15 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index 45ab0202eb..c0fe0f3f69 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -314,21 +314,12 @@ LoLEngine::~LoLEngine() {
delete[] _healiShapes;
}
- if (_monsterShapes) {
- for (int i = 0; i < 48; i++)
- delete[] _monsterShapes[i];
- delete[] _monsterShapes;
- }
- if (_monsterPalettes) {
- for (int i = 0; i < 48; i++)
- delete[] _monsterPalettes[i];
- delete[] _monsterPalettes;
- }
- if (_monsterShapesEx) {
- for (int i = 0; i < 576; i++)
- delete[] _monsterShapesEx[i];
- delete[] _monsterShapesEx;
- }
+ for (int i = 0; i < 3; i++)
+ releaseMonsterShapes(i);
+
+ delete[] _monsterShapes;
+ delete[] _monsterPalettes;
+ delete[] _monsterShapesEx;
if (_automapShapes)
delete[] _automapShapes;