mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Fixed that the TimerEvent should flag as pendingDelete before calling the callback, because callback might trigger the reorder function
This commit is contained in:
parent
18c524c433
commit
1cf9ff9f2f
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…
Add table
Reference in a new issue