fix bug where starting index was set incorrectly when populating graph

This commit is contained in:
2026-02-28 22:52:05 +01:00
parent 9ab96c5903
commit 846ff72d1f
5 changed files with 30 additions and 26 deletions

View File

@ -34,7 +34,7 @@ private:
std::unordered_set<size_t>
path_indices; // For faster lookup if a vertex is part of the path in renderer
std::stack<size_t> move_history; // Moves between the starting state and the current state
std::vector<size_t> move_history; // Moves between the starting state and the current state
std::unordered_map<size_t, int> visit_counts; // How often each state was visited
size_t starting_state_index = 0;
@ -42,6 +42,7 @@ private:
size_t previous_state_index = 0;
int total_moves = 0;
bool edited = false;
public:
state_manager(threaded_physics& _physics, const std::string& _preset_file) : physics(_physics)