mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 11:17:34 +02:00
simplify for-loop format
This commit is contained in:
parent
deccc54965
commit
e4436d264a
1 changed files with 1 additions and 2 deletions
|
@ -236,8 +236,7 @@ void AvatarMixerSlave::broadcastAvatarDataToAgent(const SharedNodePointer& node)
|
||||||
|
|
||||||
// ignore or sort
|
// ignore or sort
|
||||||
const AvatarSharedPointer& thisAvatar = nodeData->getAvatarSharedPointer();
|
const AvatarSharedPointer& thisAvatar = nodeData->getAvatarSharedPointer();
|
||||||
for (size_t i = 0; i < avatarsToSort.size(); ++i) {
|
for (const auto& avatar : avatarsToSort) {
|
||||||
const AvatarSharedPointer& avatar = avatarsToSort[i];
|
|
||||||
if (avatar == thisAvatar) {
|
if (avatar == thisAvatar) {
|
||||||
// don't echo updates to self
|
// don't echo updates to self
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue