Improve some String.Split calls.

This commit is contained in:
RoosterDragon
2024-11-13 18:53:34 +00:00
committed by Pavel Penev
parent cf7f57252e
commit bf7f81b7fe
6 changed files with 7 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ namespace OpenRA.Mods.Cnc.Traits
var hva = unit;
if (info.Value != null)
{
var fields = info.Value.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
var fields = info.Value.Split(',', StringSplitOptions.RemoveEmptyEntries);
if (fields.Length >= 1)
vxl = hva = fields[0].Trim();