diff --git a/libs/ImGui/include/imgui_memory_editor.h b/libs/ImGui/include/imgui_memory_editor.h index e86575288..24c04d75b 100644 --- a/libs/ImGui/include/imgui_memory_editor.h +++ b/libs/ImGui/include/imgui_memory_editor.h @@ -412,10 +412,10 @@ struct MemoryEditor if (ImGui::IsMouseDoubleClicked(0)) { DataEditingTakeFocus = true; data_editing_addr_next = addr; - } else { - DataPreviewAddr = addr; - DataPreviewAddrEnd = addr; } + + DataPreviewAddr = addr; + DataPreviewAddrEnd = addr; } if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) { DataPreviewAddrEnd = addr; @@ -472,10 +472,11 @@ struct MemoryEditor if (ImGui::IsMouseDoubleClicked(0)) { DataEditingTakeFocus = true; data_editing_addr_next = addr; - } else { - DataPreviewAddr = addr; - DataPreviewAddrEnd = addr; } + + DataPreviewAddr = addr; + DataPreviewAddrEnd = addr; + } if (!ReadOnly && ImGui::IsItemHovered() && ((ImGui::IsMouseClicked(0) && ImGui::GetIO().KeyShift) || ImGui::IsMouseDragging(0))) { DataPreviewAddrEnd = addr;