From 90a3dc65bf162dcfb51259132237295c3b4047ec Mon Sep 17 00:00:00 2001 From: Guillaume Jacquemin Date: Tue, 10 Dec 2024 14:25:16 +0100 Subject: [PATCH] Application: use name instead of payload type as ID. --- src/Application/Application_MassViewer_Weapons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application/Application_MassViewer_Weapons.cpp b/src/Application/Application_MassViewer_Weapons.cpp index dea84ee..2c1feab 100644 --- a/src/Application/Application_MassViewer_Weapons.cpp +++ b/src/Application/Application_MassViewer_Weapons.cpp @@ -91,7 +91,7 @@ Application::drawWeaponCategory(Containers::StringView name, GameObjects::Weapon ImGui::TableNextColumn(); ImGui::TextUnformatted(name.cbegin(), name.cend()); - ImGui::PushID(payload_type.data()); + ImGui::PushID(name.cbegin()); if(drawUnsafeWidget(ImGui::SmallButton, ICON_FA_SAVE " Save")) { _modifiedBySaveTool = true;