diff --git a/Source/Contents/NavigationManager.h b/Source/Contents/NavigationManager.h index 19a900b3..324ec4ce 100644 --- a/Source/Contents/NavigationManager.h +++ b/Source/Contents/NavigationManager.h @@ -351,6 +351,7 @@ public: bool GetRouteFlag() const; int GetSelectedNode() const; CNavi_Link* GetNode(int index) const; + void ResetCurrentTarget(); int AddWrappedRouteLines(int kind, int x, int y, const char* text); bool SelectState(int index); bool SelectNodeState(); diff --git a/Source/Contents/NavigationSource.cpp b/Source/Contents/NavigationSource.cpp index d784323c..504d4a93 100644 --- a/Source/Contents/NavigationSource.cpp +++ b/Source/Contents/NavigationSource.cpp @@ -797,3 +797,11 @@ CNavi_Link* CNavigationManager::GetNode(int index) const { } return nullptr; } + +// OFFSET: 0x00B96F20 +// FUNCTION: fn_19595 +void CNavigationManager::ResetCurrentTarget() { + this->currentTarget = NavigationTarget(); + this->LoadTargetPreview(); + this->ClearRouteNodes(); +}