diff --git a/include/gen/NodeGroup.h b/include/gen/NodeGroup.h index ea55a26e25a8d2278727ecb00e88d33e90828bf9..6a35451ddb67c40b94a27bac9cd2b93b29234d63 100644 --- a/include/gen/NodeGroup.h +++ b/include/gen/NodeGroup.h @@ -6,8 +6,6 @@ All rights reserved. Please see niflib.h for licence. */ #include "../NIF_IO.h" -// Include structures -#include "../Ref.h" namespace Niflib { // Forward define of referenced blocks @@ -28,7 +26,7 @@ struct NIFLIB_API NodeGroup { /*! * The list of NiNode references. */ - vector<Ref<NiNode > > nodes; + vector<NiNode * > nodes; }; } diff --git a/src/gen/obj_impl.cpp b/src/gen/obj_impl.cpp index de9f2607854668ac0ac1bd1d0d15b43336281311..7bed8f023d36e9e02b1f7db1312836ebe2acdb66 100644 --- a/src/gen/obj_impl.cpp +++ b/src/gen/obj_impl.cpp @@ -1540,8 +1540,6 @@ std::list<NiObjectRef> ABoneLODController::InternalGetRefs() const { refs = NiTimeController::GetRefs(); for (uint i1 = 0; i1 < nodeGroups.size(); i1++) { for (uint i2 = 0; i2 < nodeGroups[i1].nodes.size(); i2++) { - if ( nodeGroups[i1].nodes[i2] != NULL ) - refs.push_back(StaticCast<NiObject>(nodeGroups[i1].nodes[i2])); }; }; return refs;