From 32d9d4311829a7d5d6af46273221ff417e7901c4 Mon Sep 17 00:00:00 2001 From: Beq Date: Fri, 31 May 2024 18:57:23 +0100 Subject: [PATCH] Fix crash due to invalidated reference use after erase. --- indra/newview/fsworldmapmessage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/fsworldmapmessage.cpp b/indra/newview/fsworldmapmessage.cpp index 48e1411142..dfc6390c54 100644 --- a/indra/newview/fsworldmapmessage.cpp +++ b/indra/newview/fsworldmapmessage.cpp @@ -199,7 +199,7 @@ bool hypergrid_processExactNamedRegionResponse(LLMessageSystem* msg, U32 agent_f continue; } - const auto& pending = idx->second; + auto pending = idx->second; htxhop_log("Recv Region Name '%s' (key: %s) block.name='%s' block.region_handle=%llu)", pending.region_name.c_str(), pending.key.c_str(), _block.name.c_str(), _block.region_handle()); _region_name_queries.erase(idx);