This commit is contained in:
psi 2013-08-26 20:42:41 +09:00
parent f0620b0e85
commit 1beea771b4
1 changed files with 4 additions and 1 deletions

View File

@ -1074,7 +1074,9 @@ void LayerMultiplex::addLayer(Layer* layer)
} }
bool LayerMultiplex::init() bool LayerMultiplex::init()
if (Layer::init()) { {
if (Layer::init())
{
_layers = Array::create(); _layers = Array::create();
_layers->retain(); _layers->retain();
@ -1083,6 +1085,7 @@ bool LayerMultiplex::init()
} }
return false; return false;
} }
bool LayerMultiplex::initWithLayers(Layer *layer, va_list params) bool LayerMultiplex::initWithLayers(Layer *layer, va_list params)
{ {
if (Layer::init()) if (Layer::init())