diff --git a/Plugins/NearestPlugin.h b/Plugins/NearestPlugin.h index ee9856ee51d..7b05d740521 100644 --- a/Plugins/NearestPlugin.h +++ b/Plugins/NearestPlugin.h @@ -86,7 +86,7 @@ template class NearestPlugin final : public BasePlugin COORDINATE_PRECISION); result.values["mapped coordinate"] = json_coordinate; std::string temp_string; - facade->GetName(phantom_node_vector.front().name_id, temp_string); + facade->GetName(phantom_node_vector.at(i).name_id, temp_string); result.values["name"] = temp_string; results.values.push_back(result); }