mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
Reset bytes sent counter when setting avatar sound
It could be past the end of the buffer if you changed sounds, and the new one is shorter. Won't happen with our current tests, but that could change, and in general no reason it couldn't happen.
This commit is contained in:
parent
5714063eff
commit
fb2968a419
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ void Agent::playAvatarSound(SharedSoundPointer sound) {
|
|||
QMetaObject::invokeMethod(this, "playAvatarSound", Q_ARG(SharedSoundPointer, sound));
|
||||
return;
|
||||
} else {
|
||||
_numAvatarSoundSentBytes = 0;
|
||||
setAvatarSound(sound);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue