From 7f4bd1856869d7ae10fa8f07708fbd75c5bb7b1e Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 23 Nov 2026 12:00:20 +0100 Subject: pes --- StatsComponent.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'StatsComponent.cs') 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 +} -- cgit v1.2.3