The description is optional so don't crash when it is null.
This commit is contained in:
committed by
Gustas
parent
7bd4b4558e
commit
ce412e4404
@@ -550,7 +550,7 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
Id = id;
|
Id = id;
|
||||||
Name = map.GetLocalisedString(name);
|
Name = map.GetLocalisedString(name);
|
||||||
Description = map.GetLocalisedString(description);
|
Description = description != null ? map.GetLocalisedString(description) : null;
|
||||||
IsVisible = visible;
|
IsVisible = visible;
|
||||||
DisplayOrder = displayorder;
|
DisplayOrder = displayorder;
|
||||||
Values = values.ToDictionary(v => v.Key, v => map.GetLocalisedString(v.Value));
|
Values = values.ToDictionary(v => v.Key, v => map.GetLocalisedString(v.Value));
|
||||||
|
|||||||
Reference in New Issue
Block a user