mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 09:29:16 +02:00
fix crash in bot.js with incorrect playSound
This commit is contained in:
parent
22048aaba5
commit
cbbe4af65f
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ var AVERAGE_AUDIO_LENGTH = 8000;
|
|||
function playRandomSound() {
|
||||
if (!Agent.isPlayingAvatarSound) {
|
||||
var whichSound = Math.floor((Math.random() * sounds.length) % sounds.length);
|
||||
Audio.playSound(sounds[whichSound]);
|
||||
Agent.playAvatarSound(sounds[whichSound]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue