diff --git a/cocos/2d/CCAutoPolygon.cpp b/cocos/2d/CCAutoPolygon.cpp index 7086e314c5..bd6668106f 100644 --- a/cocos/2d/CCAutoPolygon.cpp +++ b/cocos/2d/CCAutoPolygon.cpp @@ -44,7 +44,7 @@ isVertsOwner(true), rect() { filename = other.filename; - isVertsOwner = other.isVertsOwner; + isVertsOwner = true; rect = other.rect; triangles.verts = new V3F_C4B_T2F[other.triangles.vertCount]; triangles.indices = new unsigned short[other.triangles.indexCount]; @@ -60,7 +60,7 @@ PolygonInfo& PolygonInfo::operator= (const PolygonInfo& other) { releaseVertsAndIndices(); filename = other.filename; - isVertsOwner = other.isVertsOwner; + isVertsOwner = true; rect = other.rect; triangles.verts = new V3F_C4B_T2F[other.triangles.vertCount]; triangles.indices = new unsigned short[other.triangles.indexCount];