DIRECTOR: Do not attempt to execute scripts containing menus

This commit is contained in:
Eugene Sandulenko 2019-12-10 23:09:15 +01:00
parent d43163b37c
commit 3c37e63780

View File

@ -958,6 +958,9 @@ void Score::loadScriptText(Common::SeekableSubReadStreamEndian &stream) {
if (ConfMan.getBool("dump_scripts"))
dumpScript(script.c_str(), kMovieScript, _movieScriptCount);
if (script.contains("\nmenu:") || script.hasPrefix("menu:"))
return;
_lingo->addCode(script.c_str(), kMovieScript, _movieScriptCount);
_movieScriptCount++;