The description is optional so don't crash when it is null.
This commit is contained in:
committed by
Gustas
parent
8b3e7bec2a
commit
c3cf94b67a
@@ -549,7 +549,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