diff options
Diffstat (limited to 'dinput/dinput.hpp')
-rw-r--r-- | dinput/dinput.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dinput/dinput.hpp b/dinput/dinput.hpp index e3eb2758..a9241504 100644 --- a/dinput/dinput.hpp +++ b/dinput/dinput.hpp @@ -36,7 +36,7 @@ public: di_t& operator=(const di_t&) = default; diptr operator->() const { return handle; } - operator bool() { return handle; } + operator bool() { return handle != nullptr; } // for debugging bad usages. must use a dependent name. template<typename t = void> |