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;
|
||||
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));
|
||||
|
||||
Reference in New Issue
Block a user