From 5a2172cb00593e2b9219a2e1b5870a2f8a598522 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Wed, 25 Feb 2026 16:06:13 +0100 Subject: [PATCH] fix crash when resetting an edited board --- src/state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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