The description is optional so don't crash when it is null.

This commit is contained in:
Matthias Mailänder
2023-08-28 19:49:08 +02:00
committed by Gustas
parent 7bd4b4558e
commit ce412e4404

View File

@@ -550,7 +550,7 @@ namespace OpenRA.Traits
{
Id = id;
Name = map.GetLocalisedString(name);
Description = map.GetLocalisedString(description);
Description = description != null ? map.GetLocalisedString(description) : null;
IsVisible = visible;
DisplayOrder = displayorder;
Values = values.ToDictionary(v => v.Key, v => map.GetLocalisedString(v.Value));