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);