aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-16 17:45:26 +0100
committerEugene Sandulenko2019-12-16 17:45:26 +0100
commit781537665c65116600f6d0937eaf9fa05cf6a2d3 (patch)
tree81c5e982b515e3cbd2ac4185d70056a477f4172c
parent462998e6d477e96f77868aacc1ef74fe72687981 (diff)
downloadscummvm-rg350-781537665c65116600f6d0937eaf9fa05cf6a2d3.tar.gz
scummvm-rg350-781537665c65116600f6d0937eaf9fa05cf6a2d3.tar.bz2
scummvm-rg350-781537665c65116600f6d0937eaf9fa05cf6a2d3.zip
DIRECTOR: LINGO: Compile menu handlers
-rw-r--r--engines/director/lingo/lingo-builtins.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-builtins.cpp b/engines/director/lingo/lingo-builtins.cpp
index 86f50a7dbf..f416636c27 100644
--- a/engines/director/lingo/lingo-builtins.cpp
+++ b/engines/director/lingo/lingo-builtins.cpp
@@ -1265,6 +1265,8 @@ void Lingo::b_installMenu(int nargs) {
handlers += g_lingo->genMenuHandler(&commandId, command);
menu->createSubMenuFromString(submenu, submenuText.c_str(), 0);
}
+
+ g_lingo->addCode(handlers.c_str(), kMovieScript, 1337);
}
Common::String Lingo::genMenuHandler(int *commandId, Common::String &command) {