FlammableComponent has an empty Damage field by default.

Prevents NRE exceptions when admemes are involved, etc?
This commit is contained in:
Vera Aguilera Puerto
2022-03-04 17:00:35 +01:00
parent 5a12a816c9
commit 1ff687f482

View File

@@ -1,9 +1,4 @@
using System.Collections.Generic;
using Content.Server.Atmos.EntitySystems;
using Content.Shared.Damage;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Atmos.Components
{
@@ -32,6 +27,6 @@ namespace Content.Server.Atmos.Components
[DataField("damage", required: true)]
[ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier Damage = default!;
public DamageSpecifier Damage = new(); // Empty by default, we don't want any funny NREs.
}
}