Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed #1363 fix a bug for cc.Scheduler

  • Loading branch information...
commit dbea68ff30ba65544471764b38159ce03c9dc5be 1 parent d5ef3f9
@dingpinglv dingpinglv authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 cocos2d/CCScheduler.js
View
6 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]);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.