Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -3872,8 +3872,13 @@ int Application::parseVoxelStats(unsigned char* messageData, ssize_t messageLeng · 3871 unmodified lines | |||
| 3872 | _voxelFades.push_back(fade); | 3872 | _voxelFades.push_back(fade); |
| 3873 | } | 3873 | } |
| 3874 | // store jurisdiction details for later use | 3874 | // store jurisdiction details for later use |
| 3875 | _voxelServerJurisdictions[nodeID] = JurisdictionMap(_voxelSceneStats.getJurisdictionRoot(), | 3875 | |
| 3876 | _voxelSceneStats.getJurisdictionEndNodes()); | 3876 | // This is bit of fiddling is because JurisdictionMap assumes it is the owner of the values used to construct it |
| 3877 | // but VoxelSceneStats thinks it's just returning a reference to it's contents. So we need to make a copy of the | ||
| 3878 | // details from the VoxelSceneStats to construct the JurisdictionMap | ||
| 3879 | JurisdictionMap jurisdictionMap; | ||
| 3880 | jurisdictionMap.copyContents(_voxelSceneStats.getJurisdictionRoot(), _voxelSceneStats.getJurisdictionEndNodes()); | ||
| 3881 | _voxelServerJurisdictions[nodeID] = jurisdictionMap; | ||
| 3877 | } | 3882 | } |
| 3878 | return statsMessageLength; | 3883 | return statsMessageLength; |
| 3879 | } | 3884 | } |