KYRA: fix minor bug in LoLEngine::playCharacterScriptChat()
This commit is contained in:
parent
f7d4c0e174
commit
007d9ef773
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue