aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/include')
-rw-r--r--src/zencore/include/zencore/refcount.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/refcount.h b/src/zencore/include/zencore/refcount.h
index f0bb6b85e..74a8f3ac0 100644
--- a/src/zencore/include/zencore/refcount.h
+++ b/src/zencore/include/zencore/refcount.h
@@ -141,6 +141,7 @@ public:
[[nodiscard]] inline bool IsNull() const { return m_Ref == nullptr; }
inline explicit operator bool() const { return m_Ref != nullptr; }
inline T* operator->() const { return m_Ref; }
+ inline T& operator*() const { return *m_Ref; }
inline T* Get() const { return m_Ref; }
inline std::strong_ordering operator<=>(const Ref& Rhs) const = default;