Closed githubmin closed 10 years ago
setProp &= extraPropsNames->containsObject(CCString::create(propertyName));
bool foundProperty = false; SetIterator it; for( it = extraPropsNames->begin(); it != extraPropsNames->end(); ++it) { String _propName = (_String)*it; if (strcmp(propertyName.c_str(), propName->getCString()) == 0) { foundProperty = true; break; } }
fixed in the pull request :)
@githubmin Your fix does not compile btw
I compiled it with cocos2d-x 3.2 final, is the version issue stop your compilation?
Thanks. Fixed
- incorrect line -
setProp &= extraPropsNames->containsObject(CCString::create(propertyName));
- should be -
bool foundProperty = false; SetIterator it; for( it = extraPropsNames->begin(); it != extraPropsNames->end(); ++it) { String _propName = (_String)*it; if (strcmp(propertyName.c_str(), propName->getCString()) == 0) { foundProperty = true; break; } }
fixed in the pull request :)