diff options
author | Willem Jan Palenstijn | 2011-12-19 23:58:55 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-12-19 23:58:55 +0100 |
commit | d2375c86eb9afbc7f14273f5c377533a1b10fce5 (patch) | |
tree | a3314cdd0f66d980d7e58d8a0a4548890d65edbe /engines | |
parent | 9a40cd8fd784bbb52186f8dc14bbea8198e1a239 (diff) | |
download | scummvm-rg350-d2375c86eb9afbc7f14273f5c377533a1b10fce5.tar.gz scummvm-rg350-d2375c86eb9afbc7f14273f5c377533a1b10fce5.tar.bz2 scummvm-rg350-d2375c86eb9afbc7f14273f5c377533a1b10fce5.zip |
SKY: Fix warning
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sky/logic.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sky/logic.cpp b/engines/sky/logic.cpp index 86c8828e5a..18fb4f7e82 100644 --- a/engines/sky/logic.cpp +++ b/engines/sky/logic.cpp @@ -1232,10 +1232,8 @@ uint16 Logic::mouseScript(uint32 scrNum, Compact *scriptComp) { * @return 0 if script finished. Else offset where to continue. */ uint16 Logic::script(uint16 scriptNo, uint16 offset) { - bool restartScript; - do { - restartScript = false; + bool restartScript = false; /// process a script /// low level interface to interpreter @@ -1422,7 +1420,7 @@ uint16 Logic::script(uint16 scriptNo, uint16 offset) { error("Unknown script command: %d", command); } } - } while (restartScript); + } while (true); } bool Logic::fnCacheChip(uint32 a, uint32 b, uint32 c) { |