clclosed #5369: Fix wrong logic when setTarget to Effect3D

This commit is contained in:
Huabing.Xu 2014-05-27 15:08:38 +08:00
parent 453ff81d2a
commit e59813476a
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ void Effect3DOutline::setOutlineWidth(float width)
void Effect3DOutline::setTarget(EffectSprite3D *sprite)
{
CCASSERT(nullptr != sprite || nullptr != sprite->getMesh(),"Error: Setting a null pointer or a null mesh EffectSprite3D to Effect3D");
CCASSERT(nullptr != sprite && nullptr != sprite->getMesh(),"Error: Setting a null pointer or a null mesh EffectSprite3D to Effect3D");
if(sprite != _sprite)
{