mirror of https://github.com/axmolengine/axmol.git
no message
This commit is contained in:
parent
f1ddef6fd9
commit
6e0525156b
|
@ -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;
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue