mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[c] Another memcpy error
This commit is contained in:
parent
7fc9d1a26a
commit
76137540ba
@ -112,7 +112,7 @@ void spSkeletonBounds_update (spSkeletonBounds* self, spSkeleton* skeleton, int/
|
|||||||
self->boundingBoxes = MALLOC(spBoundingBoxAttachment*, skeleton->slotsCount);
|
self->boundingBoxes = MALLOC(spBoundingBoxAttachment*, skeleton->slotsCount);
|
||||||
|
|
||||||
newPolygons = CALLOC(spPolygon*, skeleton->slotsCount);
|
newPolygons = CALLOC(spPolygon*, skeleton->slotsCount);
|
||||||
memcpy(newPolygons, self->polygons, internal->capacity);
|
memcpy(newPolygons, self->polygons, sizeof(spPolygon*) * internal->capacity);
|
||||||
FREE(self->polygons);
|
FREE(self->polygons);
|
||||||
self->polygons = newPolygons;
|
self->polygons = newPolygons;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user