Fix NULL deref when deserializing CustomNode AnimationNodes (GH #13)

stable-7
Nicolas Hake 2016-02-13 23:22:21 +01:00 committed by Maikel de Vries
parent 0301f610fc
commit f35b3f3342
1 changed files with 1 additions and 0 deletions

View File

@ -880,6 +880,7 @@ void StdMeshInstance::AnimationNode::CompileFunc(StdCompiler* pComp, const StdMe
const StdMeshBone* bone = Mesh->GetSkeleton().GetBoneByName(bone_name);
if(!bone) pComp->excCorrupt("No such bone: \"%s\"", bone_name.getData());
Custom.BoneIndex = bone->Index;
Custom.Transformation = new StdMeshTransformation;
}
else
{