From 3e273d67bae7c6fc9d63eb2eed5cbc3a03eb0829 Mon Sep 17 00:00:00 2001 From: PopSlime Date: Wed, 10 May 2023 11:10:11 +0800 Subject: [PATCH] Fix physical dimension parsing. --- Assets/Cryville/Crtr/Config/InputConfigPanel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Cryville/Crtr/Config/InputConfigPanel.cs b/Assets/Cryville/Crtr/Config/InputConfigPanel.cs index 16ad849..543cfab 100644 --- a/Assets/Cryville/Crtr/Config/InputConfigPanel.cs +++ b/Assets/Cryville/Crtr/Config/InputConfigPanel.cs @@ -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;