diff options
Diffstat (limited to 'engines/hdb/ai-funcs.cpp')
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index 5c8f929fd2..02c694120b 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -681,6 +681,7 @@ int AI::checkForTouchplate(int x, int y) { void AI::removeEntity(AIEntity *e) { for (uint i = 0; i < _ents->size(); i++) if (_ents->operator[](i) == e) { + delete _ents->operator[](i); _ents->remove_at(i); return; } |