fix things

This commit is contained in:
Alex Noir
2017-12-16 21:45:30 +03:00
parent 8ab97af456
commit 0ce9acb76a
2 changed files with 9 additions and 5 deletions
@@ -616,7 +616,7 @@ namespace Barotrauma
new XAttribute("y", (int)(rect.Y - Submarine.HiddenSubPosition.Y)),
new XAttribute("spawn", spawnType));
if (idCardDesc != null) element.Add(new XAttribute("idcarddesc", idCardDesc));
if (!string.IsNullOrWhiteSpace(idCardDesc)) element.Add(new XAttribute("idcarddesc", idCardDesc));
if (idCardTags.Length > 0)
{
element.Add(new XAttribute("idcardtags", string.Join(",", idCardTags)));