diff options
Diffstat (limited to 'engines/director/lingo/lingo-the.cpp')
-rw-r--r-- | engines/director/lingo/lingo-the.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp index a9bffbbd57..e90fa3f60d 100644 --- a/engines/director/lingo/lingo-the.cpp +++ b/engines/director/lingo/lingo-the.cpp @@ -274,6 +274,8 @@ TheEntityField fields[] = { }; void Lingo::initTheEntities() { + _objectEntityId = kTheObject; + TheEntity *e = entities; while (e->entity != kTheNOEntity) { @@ -289,6 +291,9 @@ void Lingo::initTheEntities() { if (f->version <= _vm->getVersion()) _theEntityFields[Common::String::format("%d%s", f->entity, f->name)] = f; + // Store all fields for kTheObject + _theEntityFields[Common::String::format("%d%s", _objectEntityId, f->name)] = f; + f++; } } |