summaryrefslogtreecommitdiff
path: root/StatsComponent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'StatsComponent.cs')
-rw-r--r--StatsComponent.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/StatsComponent.cs b/StatsComponent.cs
index 67b21b8..2ec0d42 100644
--- a/StatsComponent.cs
+++ b/StatsComponent.cs
@@ -3,10 +3,10 @@ using Godot;
public partial class StatsComponent : Node
{
// No longer exported here!
- public EntityStats RuntimeStats { get; private set; }
+ public EntityStats RuntimeStats { get; private set; } = null!;
// We call this manually from the Player script
- public void Initialize(EntityStats baseStats)
+ public void Initialize(EntityStats? baseStats)
{
if (baseStats != null)
{
@@ -17,4 +17,4 @@ public partial class StatsComponent : Node
GD.PrintErr("CRITICAL: StatsComponent received null BaseStats!");
}
}
-} \ No newline at end of file
+}