From aadf7f68858c3200f6d45a71844ac0fd661de5f1 Mon Sep 17 00:00:00 2001 From: Ibra Date: Mon, 13 Apr 2026 02:24:51 +0300 Subject: [PATCH] bugfix(optionsmenu): Disable resolution change in the Online Options Menu to prevent crashes --- .../Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp index 2c26f935a9f..24d19ffaeac 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp @@ -76,6 +76,8 @@ #include "ww3d.h" +#include "../OnlineServices_Init.h" + // This is for non-RC builds only!!! #define VERBOSE_VERSION L"Release" @@ -1352,7 +1354,7 @@ void OptionsMenuInit( WindowLayout *layout, void *userData ) GameWindow *parent = TheWindowManager->winGetWindowFromId( nullptr, parentID ); TheWindowManager->winSetFocus( parent ); - if( (TheGameLogic->isInGame() && TheGameLogic->getGameMode() != GAME_SHELL) || TheGameSpyInfo ) + if( (TheGameLogic->isInGame() && TheGameLogic->getGameMode() != GAME_SHELL) || NGMP_OnlineServicesManager::GetInstance() != nullptr) { // disable controls that you can't change the options for in game comboBoxLANIP->winEnable(FALSE);