diff options
author | athrxx | 2011-11-03 23:04:30 +0100 |
---|---|---|
committer | athrxx | 2011-11-03 23:05:04 +0100 |
commit | 286c319719acc2bd414062d41ecc5796b248fe7e (patch) | |
tree | 3f1dd691d03bf70ee9408eb80c7d7474a2b7741a | |
parent | 4eab4f931fabe97e892c5e4fc2ee12ae34c9a3dc (diff) | |
download | scummvm-rg350-286c319719acc2bd414062d41ecc5796b248fe7e.tar.gz scummvm-rg350-286c319719acc2bd414062d41ecc5796b248fe7e.tar.bz2 scummvm-rg350-286c319719acc2bd414062d41ecc5796b248fe7e.zip |
KYRA: fix minor bug in LoLEngine::playCharacterScriptChat()
-rw-r--r-- | engines/kyra/lol.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index 5aba264ceb..bba21bb5da 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -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; |