Makes an assert if CC_ENABLE_CHIPMUNK_INTEGRATION was not enabled in PhysicsDebugNode::create.

This commit is contained in:
James Chen 2014-01-26 20:05:51 +08:00
parent 13cbaf4968
commit 1c20df5ca9
1 changed files with 2 additions and 0 deletions

View File

@ -209,6 +209,8 @@ PhysicsDebugNode* PhysicsDebugNode::create(cpSpace *space)
node->init();
#if CC_ENABLE_CHIPMUNK_INTEGRATION
node->_spacePtr = space;
#else
CCASSERT(false, "CC_ENABLE_CHIPMUNK_INTEGRATION was not enabled!");
#endif
node->autorelease();
}