diff options
author | Eugene Sandulenko | 2017-08-29 09:33:14 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-29 09:33:44 +0200 |
commit | b5c552b3bb7f6cd18c493dc23b678135c86a12e7 (patch) | |
tree | 13b61bfc26f5120117aaf4d6d3a421cca3e84236 /engines/wage/script.cpp | |
parent | 58fb345b3e56feb6f05bee0385e115f47bc00b81 (diff) | |
download | scummvm-rg350-b5c552b3bb7f6cd18c493dc23b678135c86a12e7.tar.gz scummvm-rg350-b5c552b3bb7f6cd18c493dc23b678135c86a12e7.tar.bz2 scummvm-rg350-b5c552b3bb7f6cd18c493dc23b678135c86a12e7.zip |
WAGE: Quit gracefully when requested
Diffstat (limited to 'engines/wage/script.cpp')
-rw-r--r-- | engines/wage/script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index 3405c8bf47..bff75d06bd 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -165,7 +165,7 @@ bool Script::execute(World *world, int loopCount, Common::String *inputText, Des } _data->seek(12); - while (_data->pos() < _data->size()) { + while (_data->pos() < _data->size() && !_engine->_shouldQuit) { printLine(_data->pos()); byte command = _data->readByte(); |