aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-18 17:41:59 +0100
committerEugene Sandulenko2019-12-18 22:47:32 +0100
commitd00ee1415863775770d8f61f4bc792b115c3fb77 (patch)
treee70fe65f3a576078142f57fe1b99ddfecbd31578 /engines/director
parent2847723f0bbaf660a31f1477a57f3a9599f7a84f (diff)
downloadscummvm-rg350-d00ee1415863775770d8f61f4bc792b115c3fb77.tar.gz
scummvm-rg350-d00ee1415863775770d8f61f4bc792b115c3fb77.tar.bz2
scummvm-rg350-d00ee1415863775770d8f61f4bc792b115c3fb77.zip
DIRECTOR: LINGO: Fix crash for commandless menu items
Diffstat (limited to 'engines/director')
-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 3283db5282..ddac565783 100644
--- a/engines/director/lingo/lingo-builtins.cpp
+++ b/engines/director/lingo/lingo-builtins.cpp
@@ -1319,6 +1319,8 @@ void Lingo::b_installMenu(int nargs) {
if (!command.empty()) {
handlers += g_lingo->genMenuHandler(&commandId, command);
submenuText += Common::String::format("[%d];", commandId);
+ } else {
+ submenuText += ';';
}
}