Skip to content

Commit

Permalink
avoid a bug in clang, see this post http://www.cocos2d-x.org/boards/7…
Browse files Browse the repository at this point in the history
…/topics/1638 Thanks to Cem Aslan's contribution!
  • Loading branch information
Walzer committed May 27, 2011
1 parent ce83ea1 commit b6cf6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos2dx/base_nodes/CCNode.cpp
Expand Up @@ -110,7 +110,7 @@ void CCNode::arrayMakeObjectsPerformSelector(CCArray* pArray, callbackFunc func)
CCARRAY_FOREACH(pArray, child)
{
CCNode* pNode = (CCNode*) child;
if(pNode && func)
if(pNode && (NULL != func))
{
(pNode->*func)();
}
Expand Down

0 comments on commit b6cf6cb

Please sign in to comment.