diff options
author | Eugene Sandulenko | 2019-12-13 00:20:30 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-13 00:20:30 +0100 |
commit | 80dd088d0d738857cf92811af53c05ccae34472c (patch) | |
tree | 9883757cf921358d051a5786693f3d31d02eeccf /engines/director/lingo | |
parent | 230a2c577680c2c5753878aed2ac5a06135549ec (diff) | |
download | scummvm-rg350-80dd088d0d738857cf92811af53c05ccae34472c.tar.gz scummvm-rg350-80dd088d0d738857cf92811af53c05ccae34472c.tar.bz2 scummvm-rg350-80dd088d0d738857cf92811af53c05ccae34472c.zip |
DIRECTOR: LINGO: Fixed menus without newline at the end
Diffstat (limited to 'engines/director/lingo')
-rw-r--r-- | engines/director/lingo/lingo-builtins.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-builtins.cpp b/engines/director/lingo/lingo-builtins.cpp index c14a248226..6758cc8023 100644 --- a/engines/director/lingo/lingo-builtins.cpp +++ b/engines/director/lingo/lingo-builtins.cpp @@ -1244,6 +1244,9 @@ void Lingo::b_installMenu(int nargs) { submenuText += ';'; submenuText += text; + + if (!*s) // if we reached end of string, do not increment it but break + break; } if (!submenuText.empty()) { |