comparison RollcallUnitTypeParser.cs @ 9:5f0259e69a7f

Remove call to add category to unit type because of changes in #32 no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sun, 15 Mar 2009 16:08:43 +0000
parents 35bc86f8c283
children 9d0d40324494
comparison
equal deleted inserted replaced
8:35bc86f8c283 9:5f0259e69a7f
46 if (mainCat == null) 46 if (mainCat == null)
47 { 47 {
48 throw new InvalidFileException("Attribute 'Category' for "+unitID+" did not match a category"); 48 throw new InvalidFileException("Attribute 'Category' for "+unitID+" did not match a category");
49 } 49 }
50 50
51 unitType.AddCategory(mainCat);
52 unitType.MainCategory = mainCat; 51 unitType.MainCategory = mainCat;
53 unitType.MaxSize = GetRequiredNumericLine(section, "MaximumSize"); 52 unitType.MaxSize = GetRequiredNumericLine(section, "MaximumSize");
54 unitType.MinSize = GetNumericLine(section, "MinimumSize", 1); 53 unitType.MinSize = GetNumericLine(section, "MinimumSize", 1);
55 unitType.MaxNumber = GetNumericLine(section, "MinNumber", 0); 54 unitType.MaxNumber = GetNumericLine(section, "MinNumber", 0);
56 unitType.MinNumber = GetNumericLine(section, "MaxNumber", -1); 55 unitType.MinNumber = GetNumericLine(section, "MaxNumber", -1);