mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Merge pull request #729 from garyyeap/fix-timer-event
Fixed that the TimerEvent should flag as pendingDelete before calling the callback, because callback might trigger the reorder function
This commit is contained in:
commit
b569f920bd
1 changed files with 1 additions and 1 deletions
|
@ -408,8 +408,8 @@ Phaser.Timer.prototype = {
|
|||
}
|
||||
else
|
||||
{
|
||||
this.events[this._i].callback.apply(this.events[this._i].callbackContext, this.events[this._i].args);
|
||||
this.events[this._i].pendingDelete = true;
|
||||
this.events[this._i].callback.apply(this.events[this._i].callbackContext, this.events[this._i].args);
|
||||
}
|
||||
|
||||
this._i++;
|
||||
|
|
Loading…
Reference in a new issue