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

liquid_container
Nicolas Hake 2016-02-13 23:22:21 +01:00
parent ec0055f260
commit ad01c2e48f
1 changed files with 1 additions and 0 deletions

View File

@ -909,6 +909,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
{