summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindra/newview/llagent.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 657e464cbb..1132ee4ea8 100755
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -3661,6 +3661,9 @@ void LLAgent::setTeleportState(ETeleportState state)
// Let the interested parties know we've teleported.
LLViewerParcelMgr::getInstance()->onTeleportFinished(false, getPositionGlobal());
+
+ //Since we teleported into a new region, we need to cleanup up any navmesh residuals
+ if ( LLPathingLib::getInstance() ) { LLPathingLib::getInstance()->cleanupResidual(); }
break;
default: