fix: Fixes missing ordinal string comparisons arguments. (#1431)

---------

Co-authored-by: Kamron Batman <3953314+kamronbatman@users.noreply.github.com>
This commit is contained in:
mdodkins 2023-07-24 04:12:38 +01:00 • committed by GitHub
parent 8eb480bdf5
commit d366e02251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -81,7 +81,7 @@ public class GumpGrid : Gump
}
//percent
var percent = sizes[i].Replace("*", "");
var percent = sizes[i].RemoveOrdinal("*");
var size = sizes[i] != percent ? len / 100 * int.Parse(percent) : int.Parse(percent);
list.Add(new Swap { Index = i, Size = size });