diff options
author | richiesams | 2013-08-11 15:04:03 -0500 |
---|---|---|
committer | richiesams | 2013-08-11 15:04:03 -0500 |
commit | 19e829ae95bc69f470d285bdf90d4b45b42248a4 (patch) | |
tree | b3532c472c2eaed1fcacccdccb4b31ad9af1de48 /engines | |
parent | 668b0e6c892c67253fe5d763ab752bf7dfbd1c3f (diff) | |
download | scummvm-rg350-19e829ae95bc69f470d285bdf90d4b45b42248a4.tar.gz scummvm-rg350-19e829ae95bc69f470d285bdf90d4b45b42248a4.tar.bz2 scummvm-rg350-19e829ae95bc69f470d285bdf90d4b45b42248a4.zip |
ZVISION: Ignore .scr file lines that are empty
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/scr_file_handling.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/zvision/scr_file_handling.cpp b/engines/zvision/scr_file_handling.cpp index 6a71fe474a..cd4baa34f0 100644 --- a/engines/zvision/scr_file_handling.cpp +++ b/engines/zvision/scr_file_handling.cpp @@ -148,6 +148,13 @@ void ScriptManager::parseResults(Common::SeekableReadStream &stream, Common::Lis // TODO: Re-order the if-then statements in order of highest occurrence while (!line.contains('}')) { + if (line.empty()) { + line = stream.readLine(); + trimCommentsAndWhiteSpace(&line); + + continue; + } + // Parse for the action type if (line.matchString("*:add*", true)) { actionList.push_back(Common::SharedPtr<ResultAction>(new ActionAdd(line))); |