diff --git a/obj/NiObject.cpp b/obj/NiObject.cpp index 7e93d44776fb6a696ed249e33026070d41696cc5..1355b011cb2061175f05f46a04f602d561da743b 100644 --- a/obj/NiObject.cpp +++ b/obj/NiObject.cpp @@ -35,7 +35,7 @@ void NiObject::AddRef() { void NiObject::SubtractRef() { --_ref_count; - if ( _ref_count < 1 ) { + if ( _ref_count < 0 ) { delete this; } }