aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zencore/include/zencore/sharedbuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/include/zencore/sharedbuffer.h b/zencore/include/zencore/sharedbuffer.h
index b30f09d50..b230c05b1 100644
--- a/zencore/include/zencore/sharedbuffer.h
+++ b/zencore/include/zencore/sharedbuffer.h
@@ -109,7 +109,7 @@ public:
[[nodiscard]] ZENCORE_API SharedBuffer MakeOwned() const&;
[[nodiscard]] ZENCORE_API SharedBuffer MakeOwned() &&;
- [[nodiscard]] bool IsOwned() const { return m_Buffer && m_Buffer->IsOwned(); }
+ [[nodiscard]] bool IsOwned() const { return !m_Buffer || m_Buffer->IsOwned(); }
[[nodiscard]] inline bool IsNull() const { return !m_Buffer; }
inline void Reset() { m_Buffer = nullptr; }