Skip to content

Commit cfd9c90

Browse files
author
SeanLin
committed
Merge pull request cocos2d#548 from dingpinglv/iss1363_PortScheduler
fixed cocos2d#1363 fix a bug for cc.Scheduler
2 parents 799454e + d318911 commit cfd9c90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cocos2d/CCScheduler.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,21 +588,21 @@ cc.Scheduler = cc.Class.extend(/** @lends cc.Scheduler# */{
588588
// updates with priority < 0
589589
for (i = 0; i < this._updatesNegList.length; i++) {
590590
if (this._updatesNegList[i].markedForDeletion) {
591-
this._removeUpdateFromHash(tmpEntry);
591+
this._removeUpdateFromHash(this._updatesNegList[i]);
592592
}
593593
}
594594

595595
// updates with priority == 0
596596
for (i = 0; i < this._updates0List.length; i++) {
597597
if (this._updates0List[i].markedForDeletion) {
598-
this._removeUpdateFromHash(tmpEntry);
598+
this._removeUpdateFromHash(this._updates0List[i]);
599599
}
600600
}
601601

602602
// updates with priority > 0
603603
for (i = 0; i < this._updatesPosList.length; i++) {
604604
if (this._updatesPosList[i].markedForDeletion) {
605-
this._removeUpdateFromHash(tmpEntry);
605+
this._removeUpdateFromHash(this._updatesPosList[i]);
606606
}
607607
}
608608

0 commit comments

Comments
 (0)