diff --git a/change_log.txt b/change_log.txt index bfb4c9a56535a540f0ba2a3742af599114a65a93..8cdb8bf3b7d0b84e2d362145606354623fba3bb8 100644 --- a/change_log.txt +++ b/change_log.txt @@ -56,6 +56,8 @@ Version 0.7.3 * Update to qhull 2011.1 (contributed by Cold Blood). +* Fixed NiSkinInstance.FixLinks for NULL bones. + Version 0.7.2 ============= diff --git a/src/obj/NiSkinInstance.cpp b/src/obj/NiSkinInstance.cpp index 1faedd6c64e17309fac3c82edd8a682abcb29d55..e8414f35c243667663f50eb9be1066c85f409e02 100644 --- a/src/obj/NiSkinInstance.cpp +++ b/src/obj/NiSkinInstance.cpp @@ -203,7 +203,9 @@ void NiSkinInstance::FixLinks( const map<unsigned int,NiObjectRef> & objects, li //Ensure that bones have the flag set properly for ( unsigned int i = 0; i < bones.size(); ++i ) { - bones[i]->SetSkinFlag(true); + if ( bones[i] != NULL ) { + bones[i]->SetSkinFlag(true); + } } //--END CUSTOM CODE--//