diff options
author | sylvaintv | 2012-06-16 00:30:42 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-28 17:36:57 +0200 |
commit | e70d3c4979ac6c87a88b259bddfc134da92b4d6b (patch) | |
tree | c2edeabede0c00af51c074a2d3c709e58a2b54a1 | |
parent | 7084803a7a7d16cd8e9027a59d67447806f0911b (diff) | |
download | scummvm-rg350-e70d3c4979ac6c87a88b259bddfc134da92b4d6b.tar.gz scummvm-rg350-e70d3c4979ac6c87a88b259bddfc134da92b4d6b.tar.bz2 scummvm-rg350-e70d3c4979ac6c87a88b259bddfc134da92b4d6b.zip |
LILLIPUT: Fix display of variable speeches
-rw-r--r-- | engines/lilliput/script.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/lilliput/script.cpp b/engines/lilliput/script.cpp index e3fd70adea..58e96a06bc 100644 --- a/engines/lilliput/script.cpp +++ b/engines/lilliput/script.cpp @@ -1261,12 +1261,13 @@ void LilliputScript::startSpeech(int speechId) { int i = 0; if (count != 0) { - int tmpVal = _vm->_rnd->getRandomNumber(count + 1); + int tmpVal = _vm->_rnd->getRandomNumber(count); if (tmpVal != 0) { for (int j = 0; j < tmpVal; j++) { do ++i; while (_vm->_packedStrings[index + count + i] != ']'); + ++i; } } } |