diff --git a/scene/entity/general/sfx.gd b/scene/entity/general/sfx.gd index a9f87b7a..2e811f10 100644 --- a/scene/entity/general/sfx.gd +++ b/scene/entity/general/sfx.gd @@ -108,7 +108,8 @@ func _set(property: StringName, value: Variant) -> bool: if mode != "场景背景音": return false if property == "自动开始": - autoplay = value + if value != null: + autoplay = value scene_autostart = value return true elif property == "循环播放":