From 3f4cd3e1e78d292bcd7283b6d2f6501db039d63a Mon Sep 17 00:00:00 2001 From: LightCat Date: Sun, 28 Oct 2018 12:23:16 +0100 Subject: [PATCH] change NavBot priority and clear nav parser priority on clear --- src/hacks/NavBot.cpp | 2 +- src/navparser.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hacks/NavBot.cpp b/src/hacks/NavBot.cpp index c040131d..2c6badaf 100644 --- a/src/hacks/NavBot.cpp +++ b/src/hacks/NavBot.cpp @@ -78,7 +78,7 @@ void Init(bool from_LevelInit) } static HookedFunction - CreateMove(HookedFunctions_types::HF_CreateMove, "NavBot", 10, []() { + CreateMove(HookedFunctions_types::HF_CreateMove, "NavBot", 18, []() { // Master Switch if (!*enable) diff --git a/src/navparser.cpp b/src/navparser.cpp index bd49eb3c..534182ea 100644 --- a/src/navparser.cpp +++ b/src/navparser.cpp @@ -614,6 +614,7 @@ static CatCommand nav_reset_ignores("nav_reset_ignores", "Reset all ignores.", void clearInstructions() { crumbs.clear(); + curr_priority = 0; } } // namespace nav