summaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/Kernel/OVR_RefCount.h
diff options
context:
space:
mode:
Diffstat (limited to 'LibOVR/Src/Kernel/OVR_RefCount.h')
-rw-r--r--LibOVR/Src/Kernel/OVR_RefCount.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/LibOVR/Src/Kernel/OVR_RefCount.h b/LibOVR/Src/Kernel/OVR_RefCount.h
index 775e24c..e6ae936 100644
--- a/LibOVR/Src/Kernel/OVR_RefCount.h
+++ b/LibOVR/Src/Kernel/OVR_RefCount.h
@@ -413,6 +413,7 @@ public:
template<class R>
OVR_FORCE_INLINE const Ptr<C>& operator = (const Ptr<R> &src)
{
+ // By design we don't check for src == pObject, as we don't expect that to be the case the large majority of the time.
if (src) src->AddRef();
if (pObject) pObject->Release();
pObject = src;