LILLIPUT: Fix display of variable speeches
This commit is contained in:
parent
7084803a7a
commit
e70d3c4979
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue