Fix physical dimension parsing.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user