(ObjectRef) Removed useless assignation
Former-commit-id: 8e7b3c75ba9a50b99dfbb6656f2c8c97db4b27a7
This commit is contained in:
@@ -76,10 +76,7 @@ bool NzObjectRef<T>::Reset(T* object)
|
|||||||
if (m_object != object)
|
if (m_object != object)
|
||||||
{
|
{
|
||||||
if (m_object)
|
if (m_object)
|
||||||
{
|
|
||||||
destroyed = m_object->RemoveReference();
|
destroyed = m_object->RemoveReference();
|
||||||
m_object = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_object = object;
|
m_object = object;
|
||||||
if (m_object)
|
if (m_object)
|
||||||
|
|||||||
Reference in New Issue
Block a user