diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index 6f103ca78..0095a4031 100644 --- a/src/entt/core/any.hpp +++ b/src/entt/core/any.hpp @@ -352,7 +352,7 @@ public: } // unnecessary but it helps to detect nasty bugs - ENTT_ASSERT(!(instance = nullptr), ""); + ENTT_ASSERT((instance = nullptr) == nullptr, ""); info = &type_id(); vtable = nullptr; mode = policy::owner;