diff --git a/src/views/vehicle/spawn/view_persist_car.cpp b/src/views/vehicle/spawn/view_persist_car.cpp index 4ecdf389..9948412c 100644 --- a/src/views/vehicle/spawn/view_persist_car.cpp +++ b/src/views/vehicle/spawn/view_persist_car.cpp @@ -135,10 +135,12 @@ namespace big } ImGui::SameLine(); + ImGui::PushID(pair.c_str()); if (ImGui::SmallButton("X")) { file_name_to_delete = pair; } + ImGui::PopID(); if (!g.persist_car.preview_vehicle || (g.persist_car.preview_vehicle && !ImGui::IsAnyItemHovered())) {