From 8a5ff5a323252678a468efffb387fc73a72cb156 Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Sat, 1 Sep 2018 22:06:39 +0200 Subject: [PATCH] Fix gay --- include/settings/Bool.hpp | 6 +++--- src/hacks/ESP.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/settings/Bool.hpp b/include/settings/Bool.hpp index 67bf68c0..f6c8e73a 100644 --- a/include/settings/Bool.hpp +++ b/include/settings/Bool.hpp @@ -35,7 +35,7 @@ public: setInternal(true); } - inline Variable &operator=(const std::string &string) + inline void operator=(const std::string &string) { fromString(string); } @@ -50,7 +50,7 @@ public: return value; } - inline Variable &operator=(bool next) + inline void operator=(bool next) { setInternal(next); } @@ -78,4 +78,4 @@ protected: bool value{ false }; std::string string{ "false" }; }; -} // namespace settings \ No newline at end of file +} // namespace settings diff --git a/src/hacks/ESP.cpp b/src/hacks/ESP.cpp index 76c50de0..07fe26f8 100644 --- a/src/hacks/ESP.cpp +++ b/src/hacks/ESP.cpp @@ -251,7 +251,7 @@ void CreateMove() { // Check usersettings if enabled - if (!enable) + if (!*enable) return; // Something