fix: Crash when clicking on the welcome screen

This commit is contained in:
WerWolv
2023-11-02 08:54:02 +01:00
parent 363b07fc0c
commit 4e6af607e8
2 changed files with 11 additions and 9 deletions

View File

@@ -7383,10 +7383,7 @@ void ImGui::BringWindowToFocusFront(ImGuiWindow* window)
IM_ASSERT(window == window->RootWindow);
const int cur_order = window->FocusOrder;
// IMHEX PATCH BEGIN
// REASON: crashes ImHex when clicking on the background on the welcome screen
//IM_ASSERT(g.WindowsFocusOrder[cur_order] == window);
// IMHEX PATCH END
IM_ASSERT(g.WindowsFocusOrder[cur_order] == window);
if (g.WindowsFocusOrder.back() == window)
return;