Fix CA1305
This commit is contained in:
committed by
Matthias Mailänder
parent
486a07602b
commit
d83e579dfe
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user