This commit is contained in:
Ming 2010-09-06 03:45:02 +00:00
parent aaa6b127e9
commit b035165e25
1 changed files with 3 additions and 0 deletions

View File

@ -163,6 +163,7 @@ namespace cocos2d {
}
void CCTMXMapInfo::setLayers(NSMutableArray<CCTMXLayerInfo*>* var)
{
CCX_SAFE_RELEASE(m_pLayers);
m_pLayers = var;
CCX_SAFE_RETAIN(m_pLayers);
}
@ -172,6 +173,7 @@ namespace cocos2d {
}
void CCTMXMapInfo::setTilesets(NSMutableArray<CCTMXTilesetInfo*>* var)
{
CCX_SAFE_RELEASE(m_pTilesets);
m_pTilesets = var;
CCX_SAFE_RETAIN(m_pTilesets);
}
@ -181,6 +183,7 @@ namespace cocos2d {
}
void CCTMXMapInfo::setObjectGroups(NSMutableArray<CCTMXObjectGroup*>* var)
{
CCX_SAFE_RELEASE(m_pObjectGroups);
m_pObjectGroups = var;
CCX_SAFE_RETAIN(m_pObjectGroups);
}