This commit is contained in:
Andrzej Kapolka 2014-01-28 11:14:21 -08:00
commit 30fdb595dd

View file

@ -63,7 +63,7 @@ void AvatarManager::updateAvatars(float deltaTime) {
// simulate avatars // simulate avatars
AvatarHash::iterator avatar = _avatarHash.begin(); AvatarHash::iterator avatar = _avatarHash.begin();
if (avatar != _avatarHash.end()) { while (avatar != _avatarHash.end()) {
if (avatar->data()->getOwningAvatarMixer()) { if (avatar->data()->getOwningAvatarMixer()) {
// this avatar's mixer is still around, go ahead and simulate it // this avatar's mixer is still around, go ahead and simulate it
avatar->data()->simulate(deltaTime, NULL); avatar->data()->simulate(deltaTime, NULL);
@ -72,6 +72,7 @@ void AvatarManager::updateAvatars(float deltaTime) {
avatar->data()->setMouseRay(applicationInstance->getMouseRayOrigin(), avatar->data()->setMouseRay(applicationInstance->getMouseRayOrigin(),
applicationInstance->getMouseRayDirection()); applicationInstance->getMouseRayDirection());
avatar++;
} else { } else {
// the mixer that owned this avatar is gone, give it to the vector of fades and kill it // the mixer that owned this avatar is gone, give it to the vector of fades and kill it
avatar = removeAvatarAtHashIterator(avatar); avatar = removeAvatarAtHashIterator(avatar);