Fix potential infinite loop when layer 0 is empty

This commit is contained in:
Chris Robinson 2013-04-25 03:35:40 -07:00
parent 76c8e81908
commit 9be20b90f1

View file

@ -228,7 +228,10 @@ void Animation::updateActiveControllers()
} }
} }
if(ctrls == NULL) if(ctrls == NULL)
{
layer++;
continue; continue;
}
/* Check if any objectlists are active on subsequent layers. Include /* Check if any objectlists are active on subsequent layers. Include
* those layers if not. * those layers if not.