diff --git a/include/light/settings.hh b/include/light/settings.hh index f899d0c0..335a37b6 100644 --- a/include/light/settings.hh +++ b/include/light/settings.hh @@ -147,7 +147,8 @@ private: public: bool boolValue() const { - return static_cast(_value); + // we use -1 to mean false + return intValue() == 1; } int intValue() const {