Fix physical dimension parsing.

This commit is contained in:
2023-05-10 11:10:11 +08:00
parent fcec43f694
commit 3e273d67ba

View File

@@ -53,7 +53,7 @@ namespace Cryville.Crtr.Config {
var result = new PhysicalDimension();
foreach (var comp in comps) {
int dim = 1;
if (comp.Length > 1) int.Parse(comp.Substring(1));
if (comp.Length > 1) dim = int.Parse(comp.Substring(1));
switch (comp[0]) {
case 'T': result.Time += dim; break;
case 'L': result.Length += dim; break;