diff --git a/GWToolboxdll/Modules/GameSettings.cpp b/GWToolboxdll/Modules/GameSettings.cpp index 51c22129d..4f4f4d04f 100644 --- a/GWToolboxdll/Modules/GameSettings.cpp +++ b/GWToolboxdll/Modules/GameSettings.cpp @@ -483,7 +483,7 @@ namespace { uint32_t button_id_dupe; uint32_t current_state; // 0x5 = hovered, 0x6 = mouse down }* param = static_cast(wparam); - if (param->button_id == 0x3 && param->current_state == 0x6) { + if (param->button_id == 0x4 && param->current_state == 0x6) { param->current_state = 0x5; // Revert state to avoid GW closing the window on mouse up // Left button clicked, on the exit button (ID 0x3)