diff options
| author | AiraYumi <aira.youme@airanyumi.net> | 2025-11-23 12:42:57 +0900 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-11-25 22:12:12 +0200 |
| commit | 0fa5991d067304d103d8bd18702e3e8806de07e3 (patch) | |
| tree | b1f07844799e843de23fe90ffce07c4c00af6841 /indra/newview/llpathfindingnavmesh.cpp | |
| parent | ae659adab6f8d1adf0224d12fb3b379251eaa501 (diff) | |
Prevent the creation of temporary objects that will be discarded.
Diffstat (limited to 'indra/newview/llpathfindingnavmesh.cpp')
| -rw-r--r-- | indra/newview/llpathfindingnavmesh.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llpathfindingnavmesh.cpp b/indra/newview/llpathfindingnavmesh.cpp index c9fbeba2f3..5bb33a65f2 100644 --- a/indra/newview/llpathfindingnavmesh.cpp +++ b/indra/newview/llpathfindingnavmesh.cpp @@ -139,7 +139,8 @@ void LLPathfindingNavMesh::handleNavMeshResult(const LLSD &pContent, U32 pNavMes ENavMeshRequestStatus status; if ( pContent.has(NAVMESH_DATA_FIELD) ) { - const LLSD::Binary &value = pContent.get(NAVMESH_DATA_FIELD).asBinary(); + LLSD nav_data = pContent.get(NAVMESH_DATA_FIELD); + const LLSD::Binary& value = nav_data.asBinary(); auto binSize = value.size(); std::string newStr(reinterpret_cast<const char *>(&value[0]), binSize); std::istringstream streamdecomp( newStr ); |
