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