Merge pull request #6568 from Trissolo/fixProcessQueue

[Fix] Added missing parameter to some function calls in Phaser.Structs.ProcessQueue#add
This commit is contained in:
Richard Davey 2023-08-28 15:43:22 +01:00 committed by GitHub
commit 56a1bbfe8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,7 +171,7 @@ var ProcessQueue = new Class({
add: function (item)
{
// Don't add if already active or pending, but DO add if active AND in the destroy list
if (this.checkQueue && (this.isActive() && !this.isDestroying()) || this.isPending())
if (this.checkQueue && (this.isActive(item) && !this.isDestroying(item)) || this.isPending(item))
{
return item;
}