simplified logic on queueOp starting an unready scene

This commit is contained in:
rook2pawn 2018-06-22 03:55:21 -07:00
parent dd53268a23
commit b040146b4a

View file

@ -1032,19 +1032,14 @@ var SceneManager = new Class({
if (!scene)
{
var isFound = false;
for (var i = 0; i < this._pending.length; i++)
{
if (this._pending[i].key === key)
{
isFound = true;
this.queueOp('start', key, data);
break;
}
}
if (isFound)
{
this.queueOp('start', key, data);
}
return this;
}