diff --git a/src/Menu/OptionsMenu.cpp b/src/Menu/OptionsMenu.cpp index 64f4dcf83..a9340044e 100644 --- a/src/Menu/OptionsMenu.cpp +++ b/src/Menu/OptionsMenu.cpp @@ -45,7 +45,6 @@ OptionsMenu::OptionsMenu() : currentGameOptions(settings.gameOptions) { determineAvailableScreenResolutions(); const auto languagesList = getFileNamesList(getDuneLegacyDataDir() / "locale", "po", true, FileListOrder_Name_Asc); - std::vector availLanguages; availLanguages.reserve(languagesList.size()); for (const auto& ll : languagesList) @@ -53,7 +52,7 @@ OptionsMenu::OptionsMenu() : currentGameOptions(settings.gameOptions) { // set up window const auto* const pBackground = pGFXManager->getUIGraphic(UI_MenuBackground); - setBackground(pBackground); + OptionsMenu::setBackground(pBackground); OptionsMenu::resize(getTextureSize(pBackground)); OptionsMenu::setWindowWidget(&windowWidget);