Fix CA1305

This commit is contained in:
RoosterDragon
2023-03-12 15:08:23 +00:00
committed by Matthias Mailänder
parent 486a07602b
commit d83e579dfe
71 changed files with 287 additions and 219 deletions

View File

@@ -201,7 +201,7 @@ namespace OpenRA.Mods.Common.Traits
foreach (var kv in mp)
{
var name = kv.Key;
var index = int.Parse(name[5..]);
var index = Exts.ParseInt32Invariant(name[5..]);
if (index >= newCount)
{
@@ -303,12 +303,12 @@ namespace OpenRA.Mods.Common.Traits
string NextActorName()
{
var id = previews.Count;
var possibleName = "Actor" + id.ToString();
var possibleName = "Actor" + id.ToStringInvariant();
while (previews.Any(p => p.ID == possibleName))
{
id++;
possibleName = "Actor" + id.ToString();
possibleName = "Actor" + id.ToStringInvariant();
}
return possibleName;