Fix CA1305
This commit is contained in:
committed by
Matthias Mailänder
parent
486a07602b
commit
d83e579dfe
@@ -85,7 +85,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
if (string.IsNullOrEmpty(prefix))
|
||||
emitError($"{widgetNode.Location} must define HotkeyPrefix if HotkeyCount > 0.");
|
||||
|
||||
return Exts.MakeArray(count, i => prefix + (i + 1).ToString("D2"));
|
||||
return Exts.MakeArray(count, i => prefix + (i + 1).ToStringInvariant("D2"));
|
||||
}
|
||||
|
||||
[ObjectCreator.UseCtor]
|
||||
@@ -104,7 +104,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
base.Initialize(args);
|
||||
|
||||
hotkeys = Exts.MakeArray(HotkeyCount,
|
||||
i => modData.Hotkeys[HotkeyPrefix + (i + 1).ToString("D2")]);
|
||||
i => modData.Hotkeys[HotkeyPrefix + (i + 1).ToStringInvariant("D2")]);
|
||||
|
||||
overlayFont = Game.Renderer.Fonts[OverlayFont];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user