From 0b517732e7e0b9741f5e25f00c89165bfe990625 Mon Sep 17 00:00:00 2001 From: "Mr. Metric" Date: Thu, 14 May 2020 17:10:53 -0700 Subject: [PATCH] fix typo from 0679e0567764d5b3362628bdf1e75c608b2a1b8b --- imgui_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 71153c20124c..e509c039a699 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -2970,7 +2970,7 @@ bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImG DataTypeClamp(data_type, p_data, p_clamp_min, p_clamp_max); // Only mark as edited if new value is different - value_changed = memcmp(&data_type, p_data, data_type_size) != 0; + value_changed = memcmp(&data_backup, p_data, data_type_size) != 0; if (value_changed) MarkItemEdited(id); }