mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
re-use iterator when checking _octreeServerSceneStats
This commit is contained in:
parent
6d6b9b8117
commit
e4849d29ec
1 changed files with 3 additions and 2 deletions
|
@ -3939,8 +3939,9 @@ int Application::processOctreeStats(NLPacket& packet, SharedNodePointer sendingN
|
|||
|
||||
// now that we know the node ID, let's add these stats to the stats for that node...
|
||||
_octreeSceneStatsLock.lockForWrite();
|
||||
if (_octreeServerSceneStats.find(nodeUUID) != _octreeServerSceneStats.end()) {
|
||||
octreeStats = &_octreeServerSceneStats[nodeUUID];
|
||||
auto it = _octreeServerSceneStats.find(nodeUUID);
|
||||
if (it != _octreeServerSceneStats.end()) {
|
||||
octreeStats = &it.value();
|
||||
statsMessageLength = octreeStats->unpackFromPacket(packet);
|
||||
} else {
|
||||
OctreeSceneStats temp;
|
||||
|
|
Loading…
Reference in a new issue