mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +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();
|
||||
|
||||
if (charId < 0) {
|
||||
charId = ch = (_rnd.getRandomNumber(0x7fff) * countActiveCharacters()) / 0x8000;
|
||||
ch = _rnd.getRandomNumber(countActiveCharacters() - 1);
|
||||
charId = ch = _rnd.getRandomNumber(countActiveCharacters() - 1);
|
||||
} else if (charId > 0) {
|
||||
int i = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user