diff options
-rw-r--r-- | engines/gob/goblin.cpp | 4 |
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]; } |