diff --git a/OpenRA.Mods.Common/Lint/CheckTranslationReference.cs b/OpenRA.Mods.Common/Lint/CheckTranslationReference.cs index f759bab059..387772d0d9 100644 --- a/OpenRA.Mods.Common/Lint/CheckTranslationReference.cs +++ b/OpenRA.Mods.Common/Lint/CheckTranslationReference.cs @@ -111,7 +111,7 @@ namespace OpenRA.Mods.Common.Lint { foreach (var fieldInfo in modType.GetFields(Binding).Where(m => Utility.HasAttribute(m))) { - if (fieldInfo.IsInitOnly) + if (fieldInfo.IsInitOnly || !fieldInfo.IsStatic) continue; if (fieldInfo.FieldType != typeof(string)) @@ -120,7 +120,7 @@ namespace OpenRA.Mods.Common.Lint continue; } - var key = (string)fieldInfo.GetValue(string.Empty); + var key = (string)fieldInfo.GetValue(null); if (referencedKeys.Contains(key)) continue;