1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix crash when the fullscreen property is read from the json

This commit is contained in:
Mathieu Schroeter 2017-08-14 17:32:55 +02:00
parent 7308e6ef00
commit 995b83b97a
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"fullscreen": 1,
"fullscreen": true,
"speedrate": 1,
"timerinterval": 50
}

View File

@ -137,7 +137,7 @@ static bool ReadConfig ()
!(g_settingsOverload & SETTING_FULLSCREEN) &&
j.find ("fullscreen") != j.end ())
{
g_bFullScreen = !j["fullscreen"].get<bool> ();
g_bFullScreen = j["fullscreen"].get<bool> ();
if (g_bFullScreen != 0)
g_bFullScreen = 1;
}