Fix error when manually adding ChasingWalkComponent to an entity (#30207)

This commit is contained in:
Tayrtahn
2024-07-21 12:17:03 -04:00
committed by GitHub
parent d1ecd84972
commit 3e3cfdb948
2 changed files with 4 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ public sealed partial class ChasingWalkComponent : Component
/// The component that the entity is chasing
/// </summary>
[DataField(required: true)]
public ComponentRegistry ChasingComponent = default!;
public ComponentRegistry ChasingComponent = [];
/// <summary>
/// The maximum radius in which the entity chooses the target component to follow