aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2009-05-13 16:22:26 +0000
committerFilippos Karapetis2009-05-13 16:22:26 +0000
commit9cdb4c36a7b474b36cab35215ed66e390becedd3 (patch)
treecac7a5e78f98f54aad5a2890f6dc2eb79175424a
parenta6cf2bf2b1ce16411e5b52cad4faf1f9505bc8e3 (diff)
downloadscummvm-rg350-9cdb4c36a7b474b36cab35215ed66e390becedd3.tar.gz
scummvm-rg350-9cdb4c36a7b474b36cab35215ed66e390becedd3.tar.bz2
scummvm-rg350-9cdb4c36a7b474b36cab35215ed66e390becedd3.zip
Fixed regression in SCI1 games from commit #40518
svn-id: r40523
-rw-r--r--engines/sci/sfx/iterator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/sfx/iterator.cpp b/engines/sci/sfx/iterator.cpp
index 4a617b6539..912e6e01a6 100644
--- a/engines/sci/sfx/iterator.cpp
+++ b/engines/sci/sfx/iterator.cpp
@@ -908,7 +908,7 @@ int Sci1SongIterator::nextCommand(byte *buf, int *result) {
}
int retval = 0;
- while (retval > 0) { /* All delays must be processed separately */
+ do { /* All delays must be processed separately */
int chan = getCommandIndex();
if (chan == COMMAND_INDEX_NONE) {
@@ -974,7 +974,7 @@ int Sci1SongIterator::nextCommand(byte *buf, int *result) {
} /* Not a PCM */
- }
+ } while (retval > 0);
return retval;
}