From 6d9c82e9373d02dccdabe144f54d08750f732efc Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 20 Dec 2016 18:47:01 +0100 Subject: [PATCH] Settings: Fix string length for strncmp (again) --- Source/User/Settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/User/Settings.cpp b/Source/User/Settings.cpp index 2b4dadc..49a1aa7 100644 --- a/Source/User/Settings.cpp +++ b/Source/User/Settings.cpp @@ -216,7 +216,7 @@ bool LoadSettings() ipstream >> mousejump; } else if ( !strncmp(setting, "Ambient sound", 13) ) { ipstream >> ambientsound; - } else if ( !strncmp(setting, "Blood ", 6) ) { + } else if ( !strncmp(setting, "Blood", 5) ) { ipstream >> bloodtoggle; } else if ( !strncmp(setting, "Auto slomo", 10) ) { ipstream >> autoslomo; @@ -241,7 +241,7 @@ bool LoadSettings() ipstream >> damageeffects; } else if ( !strncmp(setting, "Text", 4) ) { ipstream >> texttoggle; - } else if ( !strncmp(setting, "Devtools", 6) ) { + } else if ( !strncmp(setting, "Devtools", 8) ) { ipstream >> devtools; } else if ( !strncmp(setting, "Show Points", 11) ) { ipstream >> showpoints; -- 2.39.5