This commit is contained in:
ProgramSnail 2023-05-17 18:29:39 +03:00
parent b723fd6a65
commit 3abac1b643
6 changed files with 27 additions and 18 deletions

View file

@ -131,7 +131,7 @@ private:
const std::vector<Key>& path,
size_t path_position) {
if (path_position == path.size()) {
if (vertex.value.has_value()) {
if (!vertex.value.has_value()) {
return std::nullopt;
}
return &vertex.value.value();