diff options
author | matheusmdx <matheus_henriquemdx@hotmail.com> | 2024-05-14 02:07:12 -0300 |
---|---|---|
committer | matheusmdx <matheus_henriquemdx@hotmail.com> | 2024-05-14 02:07:12 -0300 |
commit | 305967c021884baa88465928c8bbdecdbc62da22 (patch) | |
tree | bf3093526a13d3dbe837b2fc96abb3a93cf72b08 | |
parent | 557f63d03796db78255f055b6d06cb5f9195ff7e (diff) | |
download | redot-engine-305967c021884baa88465928c8bbdecdbc62da22.tar.gz |
Fix error in AudioStreamPlayer2D
-rw-r--r-- | scene/2d/audio_stream_player_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/audio_stream_player_2d.cpp b/scene/2d/audio_stream_player_2d.cpp index fb632e8f64..ee30ee5e65 100644 --- a/scene/2d/audio_stream_player_2d.cpp +++ b/scene/2d/audio_stream_player_2d.cpp @@ -84,7 +84,7 @@ StringName AudioStreamPlayer2D::_get_actual_bus() { ERR_FAIL_COND_V(world_2d.is_null(), SceneStringName(Master)); PhysicsDirectSpaceState2D *space_state = PhysicsServer2D::get_singleton()->space_get_direct_state(world_2d->get_space()); - ERR_FAIL_COND_V(space_state, SceneStringName(Master)); + ERR_FAIL_NULL_V(space_state, SceneStringName(Master)); PhysicsDirectSpaceState2D::ShapeResult sr[MAX_INTERSECT_AREAS]; PhysicsDirectSpaceState2D::PointParameters point_params; |