From ab18b6cba83d1a31b2fac2ab548b6038b6cc07b0 Mon Sep 17 00:00:00 2001 From: Deve Date: Thu, 18 Apr 2019 06:57:08 +0200 Subject: [PATCH] Fixed server only build --- src/states_screens/options/options_screen_video.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/states_screens/options/options_screen_video.cpp b/src/states_screens/options/options_screen_video.cpp index 7ca723988..44c0f35e5 100644 --- a/src/states_screens/options/options_screen_video.cpp +++ b/src/states_screens/options/options_screen_video.cpp @@ -644,6 +644,7 @@ void OptionsScreenVideo::eventCallback(Widget* widget, const std::string& name, void OptionsScreenVideo::tearDown() { +#ifndef SERVER_ONLY if (m_prev_adv_pipline != UserConfigParams::m_dynamic_lights && CVS->isGLSL()) { @@ -656,6 +657,7 @@ void OptionsScreenVideo::tearDown() Screen::tearDown(); // save changes when leaving screen user_config->saveConfig(); +#endif } // tearDown // ----------------------------------------------------------------------------