From 089b075317f4617e603fd250cf4efe41f184b1fc Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 29 May 2014 22:19:21 -0400 Subject: [PATCH] Fix explicit operator bool to be negated is() --- sol/object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sol/object.hpp b/sol/object.hpp index 8c7be910..6e1c9feb 100644 --- a/sol/object.hpp +++ b/sol/object.hpp @@ -47,7 +47,7 @@ public: } explicit operator bool() const { - return is(); + return !is(); } };