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;
|
||||
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