mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 10:16:01 +08:00
Merge pull request #454 from Kabuto85/master
Fixed error reported by address sanitizer
This commit is contained in:
commit
839c9e832b
@ -87,7 +87,7 @@ spSkeleton* spSkeleton_create (spSkeletonData* data) {
|
|||||||
if (parent)
|
if (parent)
|
||||||
parent->children[parent->childrenCount++] = bone;
|
parent->children[parent->childrenCount++] = bone;
|
||||||
}
|
}
|
||||||
CONST_CAST(spBone*, self->root) = self->bones[0];
|
CONST_CAST(spBone*, self->root) = (self->bonesCount > 0 ? self->bones[0] : NULL);
|
||||||
|
|
||||||
self->slotsCount = data->slotsCount;
|
self->slotsCount = data->slotsCount;
|
||||||
self->slots = MALLOC(spSlot*, self->slotsCount);
|
self->slots = MALLOC(spSlot*, self->slotsCount);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user