aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-06-19 17:35:27 +0530
committerEugene Sandulenko2019-09-03 17:16:49 +0200
commita8256ee3c1a108f8ea88c98cec6274618fbb5c80 (patch)
treead089739ee0c4ddbf9394327b4561c60b6cbe906
parent0e77d93ad43d31b44aadf443bb35282ff038dc16 (diff)
downloadscummvm-rg350-a8256ee3c1a108f8ea88c98cec6274618fbb5c80.tar.gz
scummvm-rg350-a8256ee3c1a108f8ea88c98cec6274618fbb5c80.tar.bz2
scummvm-rg350-a8256ee3c1a108f8ea88c98cec6274618fbb5c80.zip
HDB: Complete locateEntity()
-rw-r--r--engines/hdb/ai-funcs.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index 2592861e08..22c8040c8f 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -25,7 +25,11 @@
namespace HDB {
AIEntity *AI::locateEntity(const char *luaName) {
- warning("STUB: AI::locateEntity required");
+ for (Common::Array<AIEntity *>::iterator it = _ents->begin(); it != _ents->end(); it++) {
+ if (Common::matchString((*it)->entityName, luaName)) {
+ return *it;
+ }
+ }
return NULL;
}