From fda721fae263758853db21f35113e07c3782b9fe Mon Sep 17 00:00:00 2001 From: feijing566 Date: Tue, 23 Feb 2016 14:07:04 +0800 Subject: [PATCH] Add "id" for parser object Add "id" for parser object --- cocos/2d/CCTMXXMLParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCTMXXMLParser.cpp b/cocos/2d/CCTMXXMLParser.cpp index 4beb07be2f..1b9d5deacf 100644 --- a/cocos/2d/CCTMXXMLParser.cpp +++ b/cocos/2d/CCTMXXMLParser.cpp @@ -448,7 +448,7 @@ void TMXMapInfo::startElement(void *ctx, const char *name, const char **atts) // Create an instance of TMXObjectInfo to store the object and its properties ValueMap dict; // Parse everything automatically - const char* keys[] = {"name", "type", "width", "height", "gid"}; + const char* keys[] = {"name", "type", "width", "height", "gid", "id"}; for (const auto& key : keys) {