if(MonsterProp"AtkTarget"]]"hp"]<=0){ //怪物死亡
TowersProp"tdtag"]].erase("AtkTarget"); //刪除塔的攻擊目標
Monster.erase(Monster.find(mon)); 從容器中刪除怪物 (就是這兩句錯)
this->removeChildByTag(BulletsProp"AtkTarget"]); 刪除怪物 (就是這兩句錯)
}
malloc: *** error for object 0x78a2b400: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
this cocos2d::Ref * 0x78a2b400 0x78a2b400
_referenceCount unsigned int 0 0
_ID unsigned int 220 220
_luaID int 0 0
_scriptObject void * NULL 0x00000000
