mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 22:51:11 +00:00
KYRA: fix minor bug in LoLEngine::playCharacterScriptChat()
This commit is contained in:
parent
4eab4f931f
commit
286c319719
@ -1922,8 +1922,7 @@ int LoLEngine::playCharacterScriptChat(int charId, int mode, int restorePortrait
|
|||||||
stopPortraitSpeechAnim();
|
stopPortraitSpeechAnim();
|
||||||
|
|
||||||
if (charId < 0) {
|
if (charId < 0) {
|
||||||
charId = ch = (_rnd.getRandomNumber(0x7fff) * countActiveCharacters()) / 0x8000;
|
charId = ch = _rnd.getRandomNumber(countActiveCharacters() - 1);
|
||||||
ch = _rnd.getRandomNumber(countActiveCharacters() - 1);
|
|
||||||
} else if (charId > 0) {
|
} else if (charId > 0) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user