summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprep <none@none>2012-03-02 11:28:49 -0500
committerprep <none@none>2012-03-02 11:28:49 -0500
commitc2a7006413ea5e4a0bf7b8b75fe5afdb51e9a6e5 (patch)
tree4d22a68d7474823b456dac1f1fe8ed2a447df5f3
parent91028d2b3ba7c7bc2f32457f13f7deec06f4586e (diff)
path-356: purging any data from the pathinglib after a successfull teleport.
-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: