#6816 Phaser.GameObjects.Components.FX#add fix null pipeline pointer

This commit is contained in:
Zeke Chan 2024-07-23 16:50:00 +08:00
parent 6c02206a90
commit 389e2af60f

View file

@ -409,7 +409,10 @@ var FX = new Class({
pipeline = pipeline.pop();
}
pipeline.controller = fx;
if (pipeline)
{
pipeline.controller = fx;
}
return fx;
}