Skip to content

Commit

Permalink
fix fileComplete reference error in Loader.loadVideoTag
Browse files Browse the repository at this point in the history
The game.load reference in the videoLoadEvent callback gets nulled when the game is destroyed.
This uses the local reference for fileComplete instead.
  • Loading branch information
Akurn committed Sep 28, 2024
1 parent f42cd15 commit eac02c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2640,7 +2640,7 @@ Phaser.Loader.prototype = {
file.data.removeEventListener(file.loadEvent, videoLoadEvent, false);
file.data.onerror = null;
file.data.canplay = true;
_this.game.load.fileComplete(file);
_this.fileComplete(file);
};

file.data.onerror = function ()
Expand Down

0 comments on commit eac02c6

Please sign in to comment.