mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +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);
|
||||
|
||||
newPolygons = CALLOC(spPolygon*, skeleton->slotsCount);
|
||||
memcpy(newPolygons, self->polygons, internal->capacity);
|
||||
memcpy(newPolygons, self->polygons, sizeof(spPolygon*) * internal->capacity);
|
||||
FREE(self->polygons);
|
||||
self->polygons = newPolygons;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user