Skip to content

Commit

Permalink
Tho, better just be sure that lack of Health trait don't crash the ga…
Browse files Browse the repository at this point in the history
…me there.
  • Loading branch information
MustaphaTR committed Dec 28, 2024
1 parent 2fd8c4d commit 1c0bb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.SS/Traits/Crates/SSHealCrateAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public override void Activate(Actor collector)
}
else
{
health.InflictDamage(collector, collector, new Damage(-(health.MaxHP - health.HP)), true);
health?.InflictDamage(collector, collector, new Damage(-(health.MaxHP - health.HP)), true);

base.Activate(collector);
}
Expand Down

0 comments on commit 1c0bb31

Please sign in to comment.