# HG changeset patch # User IBBoard # Date 1232655968 0 # Node ID ad8eaed12e6651f08a3bd194f192c7ccb3c7a00d # Parent ac232763858b0c74a6a2782d8adb89d0b1d9f3d1 Re #9 - Load in smaller methods * Fix earlier commit that caused exceptions about already being in dictionary for first object by caching before adding diff -r ac232763858b -r ad8eaed12e66 api/Objects/Race.cs --- a/api/Objects/Race.cs Sun Jan 18 20:52:29 2009 +0000 +++ b/api/Objects/Race.cs Thu Jan 22 20:26:08 2009 +0000 @@ -166,8 +166,8 @@ public void AddUnitType(UnitType type) { + CacheUnitType(type); unitTypes.Add(type.ID, type); - CacheUnitType(type); } [Obsolete("Use AddUnitType method instead")]