diff options
author | Eugene Sandulenko | 2016-07-10 23:58:21 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 7f87a90179d87d95a09bc48b11ccf9ac9065699c (patch) | |
tree | ed3daa56c48885b7912d1e34e61c5888a4769087 /engines/director/lingo/lingo.cpp | |
parent | c4e1d08d4a868801fc522d0d27aa6693ddac6114 (diff) | |
download | scummvm-rg350-7f87a90179d87d95a09bc48b11ccf9ac9065699c.tar.gz scummvm-rg350-7f87a90179d87d95a09bc48b11ccf9ac9065699c.tar.bz2 scummvm-rg350-7f87a90179d87d95a09bc48b11ccf9ac9065699c.zip |
DIRECTOR: Lingo: Fix crash on parse error
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 09e3805426..3a24cebb48 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -148,7 +148,8 @@ void Lingo::addCode(const char *code, ScriptType type, uint16 id) { code1(STOP); } - Common::hexdump((byte *)&_currentScript->front(), _currentScript->size() * sizeof(inst)); + if (_currentScript->size()) + Common::hexdump((byte *)&_currentScript->front(), _currentScript->size() * sizeof(inst)); } void Lingo::executeScript(ScriptType type, uint16 id) { |