fix crash in bot.js with incorrect playSound

This commit is contained in:
Stephen Birarda 2014-03-19 17:17:52 -07:00
parent 22048aaba5
commit cbbe4af65f

View file

@ -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]);
}
}