Merge pull request #1581 from X-sam/patch-1

Catch null pointer exception
This commit is contained in:
player-03
2022-10-10 13:31:22 -04:00
committed by GitHub

View File

@@ -246,7 +246,7 @@ class HTML5AudioSource
position.w = value.w;
#if lime_howlerjs
if (parent.buffer.__srcHowl != null && parent.buffer.__srcHowl.pos != null) parent.buffer.__srcHowl.pos(position.x, position.y, position.z, id);
if (parent.buffer != null && parent.buffer.__srcHowl != null && parent.buffer.__srcHowl.pos != null) parent.buffer.__srcHowl.pos(position.x, position.y, position.z, id);
// There are more settings to the position of the sound on the "pannerAttr()" function of howler. Maybe somebody who understands sound should look into it?
#end