no message

This commit is contained in:
PavlOm 2015-11-27 23:33:20 +10:00
parent f1ddef6fd9
commit 6e0525156b
2 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,7 @@ bool ComponentContainer::add(Component *com)
if (_componentMap.find(componentName) != _componentMap.end()) if (_componentMap.find(componentName) != _componentMap.end())
{ {
CCASSERT(true, "ComponentContainer already have this kind of component"); CCASSERT(false, "ComponentContainer already have this kind of component");
break; break;
} }
_componentMap[componentName] = com; _componentMap[componentName] = com;

View File

@ -76,6 +76,7 @@ PhysicsBody::PhysicsBody()
, _recordScaleX(1.f) , _recordScaleX(1.f)
, _recordScaleY(1.f) , _recordScaleY(1.f)
{ {
_name = COMPONENT_NAME;
} }
PhysicsBody::~PhysicsBody() PhysicsBody::~PhysicsBody()