Skip to content

Commit b8074ea

Browse files
authored
Use EnsureComp for StationSpawningSystem (#1424)
1 parent 87c7979 commit b8074ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Content.Server/Station/Systems/StationSpawningSystem.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public EntityUid SpawnPlayerMob(
188188
_humanoidSystem.LoadProfile(entity.Value, profile);
189189
_metaSystem.SetEntityName(entity.Value, profile.Name);
190190
if (profile.FlavorText != "" && _configurationManager.GetCVar(CCVars.FlavorText))
191-
AddComp<DetailExaminableComponent>(entity.Value).Content = profile.FlavorText;
191+
EnsureComp<DetailExaminableComponent>(entity.Value).Content = profile.FlavorText;
192192
}
193193

194194
DoJobSpecials(job, entity.Value);

0 commit comments

Comments
 (0)