diff --git a/src/state.cpp b/src/state.cpp index 1d6f115..56ab476 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -1,5 +1,6 @@ #include "state.hpp" #include "config.hpp" +#include "distance.hpp" #include #include @@ -50,7 +51,6 @@ auto StateManager::LoadPreset(int preset) -> void { auto StateManager::ResetState() -> void { current_state = presets.at(current_preset); previous_state = current_state; - FindTargetPath(); if (edited) { // We also need to clear the graph in case the state has been edited // because the graph could contain states that are impossible to reach