summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 5dd417670..3d433dc04 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -356,9 +356,9 @@ void Client::gameInit()
#endif
if (config.getBoolValue("allowscreensaver"))
- putenv("SDL_VIDEO_ALLOW_SCREENSAVER=1");
+ putenv(const_cast<char*>("SDL_VIDEO_ALLOW_SCREENSAVER=1"));
else
- putenv("SDL_VIDEO_ALLOW_SCREENSAVER=0");
+ putenv(const_cast<char*>("SDL_VIDEO_ALLOW_SCREENSAVER=0"));
chatLogger = new ChatLogger;
if (mOptions.chatLogDir == "")