fix: name is unique, but address can be the same. (#518)

This commit is contained in:
PlayDay
2025-06-20 19:35:24 +02:00
committed by GitHub
parent 4abb23414d
commit b2d975fe7b
+2 -3
View File
@@ -67,9 +67,8 @@ namespace YimMenu::Submenus
{
for (auto& var : SavedVariables::GetSavedGlobals())
{
const auto& value = var.Read();
ImGui::PushID(value);
DrawSavedVariablePreview(var, value);
ImGui::PushID(var.name.c_str());
DrawSavedVariablePreview(var, var.Read());
ImGui::PopID();
}
ImGui::EndListBox();