aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorLars Persson2006-05-31 20:19:03 +0000
committerLars Persson2006-05-31 20:19:03 +0000
commit0044ef7be11e50c7b67b5564360a2955f9953eea (patch)
tree614be8238e8fea45c5cc7996c15d752c60835301 /engines/gob
parent9472476acbf10b060627f209dc9afcb7284e8516 (diff)
downloadscummvm-rg350-0044ef7be11e50c7b67b5564360a2955f9953eea.tar.gz
scummvm-rg350-0044ef7be11e50c7b67b5564360a2955f9953eea.tar.bz2
scummvm-rg350-0044ef7be11e50c7b67b5564360a2955f9953eea.zip
Fixed deletion statement as it was deleting arrays(CW compiler was complaining).
svn-id: r22810
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/goblin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/goblin.cpp b/engines/gob/goblin.cpp
index 29d8ed38bd..3085dfa81b 100644
--- a/engines/gob/goblin.cpp
+++ b/engines/gob/goblin.cpp
@@ -174,7 +174,7 @@ Goblin::~Goblin() {
for (col = 0; col < 6; col++)
if (_goblins[i]->stateMach[state][col])
delete _goblins[i]->stateMach[state][col];
- delete _goblins[i]->stateMach;
+ delete []_goblins[i]->stateMach;
}
delete _goblins[i];
}
@@ -186,7 +186,7 @@ Goblin::~Goblin() {
for (col = 0; col < 6; col++)
if (_objects[i]->stateMach[state][col])
delete _objects[i]->stateMach[state][col];
- delete _objects[i]->stateMach;
+ delete []_objects[i]->stateMach;
}
delete _objects[i];
}