diff options
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 4 | ||||
-rw-r--r-- | engines/hdb/ai.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index bf55c392b0..3a425beb76 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -33,6 +33,10 @@ AIEntity *AI::locateEntity(const char *luaName) { return NULL; } +void AI::removeEntity(AIEntity *e) { + _ents->erase(&e); +} + // Check to see if we can get this entity bool AI::getTableEnt(AIType type) { switch (type) { diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index a5f05bb9a5..aaa8385fd5 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -412,6 +412,7 @@ public: // Entity Functions AIEntity *locateEntity(const char *luaName); + void removeEntity(AIEntity *e); bool getTableEnt(AIType type); bool walkThroughEnt(AIType type); void getItemSound(AIType type); |