diff --git a/OpenRA.Mods.Common/Scripting/Global/UserInterfaceGlobal.cs b/OpenRA.Mods.Common/Scripting/Global/UserInterfaceGlobal.cs index 80e1f50af6..f07d7d3e6b 100644 --- a/OpenRA.Mods.Common/Scripting/Global/UserInterfaceGlobal.cs +++ b/OpenRA.Mods.Common/Scripting/Global/UserInterfaceGlobal.cs @@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.Scripting.Global using (kv.Key) using (kv.Value) { - if (!kv.Key.TryGetClrValue(out string variable) || !kv.Value.TryGetClrValue(out object value)) + if (!kv.Key.TryGetClrValue(out var variable) || !kv.Value.TryGetClrValue(out var value)) throw new LuaException($"Translation arguments requires a table of [\"string\"]=value pairs. Received {kv.Key.WrappedClrType().Name},{kv.Value.WrappedClrType().Name}"); argumentDictionary.Add(variable, value);