Skip to content

Commit

Permalink
Fix null access on engine id
Browse files Browse the repository at this point in the history
  • Loading branch information
clementlandrin committed Oct 17, 2024
1 parent 81932f0 commit bdf2d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hxd/fs/LocalFileSystem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ class LocalEntry extends FileEntry {
#if multidriver
if (watchByEngine == null)
watchByEngine = [];
watchByEngine[h3d.Engine.getCurrent().id] = onChanged;
var engine = h3d.Engine.getCurrent();
if ( engine != null )
watchByEngine[engine.id] = onChanged;
#end

watchCallback = function() {
Expand Down

0 comments on commit bdf2d02

Please sign in to comment.