From 27b302911189a7caef3b6ef9bfc5ab72c2874fdd Mon Sep 17 00:00:00 2001 From: Ibra Date: Wed, 17 Jun 2026 23:02:22 +0300 Subject: [PATCH] fix: Fix stack overflow in updateMapHoverPreview due to double wrap on menu re entry --- .../GUI/GUICallbacks/Menus/WOLQuickMatchMenu.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLQuickMatchMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLQuickMatchMenu.cpp index 37dd15c6683..5578f3727b3 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLQuickMatchMenu.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLQuickMatchMenu.cpp @@ -1451,6 +1451,13 @@ void WOLQuickMatchMenuShutdown( WindowLayout *layout, void *userData ) if (!TheGameEngine->getQuitting()) saveQuickMatchOptions(); + if (listboxMapSelect && mapListboxPreviewFunc) + listboxMapSelect->winSetDrawFunc(mapListboxPreviewFunc); + + mapListboxPreviewFunc = nullptr; + mapHoverPreview = nullptr; + listboxMapSelect = nullptr; + parentWOLQuickMatch = nullptr; buttonBack = nullptr; quickmatchTextWindow = nullptr;