From dbea68ff30ba65544471764b38159ce03c9dc5be Mon Sep 17 00:00:00 2001 From: dingpinglv Date: Wed, 19 Sep 2012 15:39:18 +0800 Subject: [PATCH] fixed #1363 fix a bug for cc.Scheduler --- cocos2d/CCScheduler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos2d/CCScheduler.js b/cocos2d/CCScheduler.js index 8ecfe2b6d9..307f214038 100644 --- a/cocos2d/CCScheduler.js +++ b/cocos2d/CCScheduler.js @@ -588,21 +588,21 @@ cc.Scheduler = cc.Class.extend(/** @lends cc.Scheduler# */{ // updates with priority < 0 for (i = 0; i < this._updatesNegList.length; i++) { if (this._updatesNegList[i].markedForDeletion) { - this._removeUpdateFromHash(tmpEntry); + this._removeUpdateFromHash(this._updatesNegList[i]); } } // updates with priority == 0 for (i = 0; i < this._updates0List.length; i++) { if (this._updates0List[i].markedForDeletion) { - this._removeUpdateFromHash(tmpEntry); + this._removeUpdateFromHash(this._updates0List[i]); } } // updates with priority > 0 for (i = 0; i < this._updatesPosList.length; i++) { if (this._updatesPosList[i].markedForDeletion) { - this._removeUpdateFromHash(tmpEntry); + this._removeUpdateFromHash(this._updatesPosList[i]); } }