Fix compilation warning in cmd_remove_layer.cpp

This commit is contained in:
David Capello 2014-03-21 23:00:31 -03:00
parent 139ecb5604
commit 0caf41c5fd

View File

@ -56,7 +56,7 @@ bool RemoveLayerCommand::onEnabled(Context* context)
{
ContextWriter writer(context);
Sprite* sprite(writer.sprite());
return sprite;
return (sprite != NULL);
}
void RemoveLayerCommand::onExecute(Context* context)