comparison api/Objects/SystemStats.cs @ 296:ed5e6d92ecd9

Re #323: WarFoundry.API - SystemStats cannot remove stat Remove code didn't fully remove stat, this has been fixed and tested
author Tsudico
date Sat, 18 Dec 2010 22:34:32 +0000
parents f8f441f2fcfe
children
comparison
equal deleted inserted replaced
295:f8f441f2fcfe 296:ed5e6d92ecd9
53 } 53 }
54 54
55 public void RemoveStatSlot(string name) 55 public void RemoveStatSlot(string name)
56 { 56 {
57 statsByName.Remove(name); 57 statsByName.Remove(name);
58 StatSlot slot = new StatSlot(name); 58 stats.Remove(this[name]);
59 slot.SystemStats = this;
60 stats.Remove(slot);
61 } 59 }
62 60
63 public int SlotCount 61 public int SlotCount
64 { 62 {
65 get { return stats.Count; } 63 get { return stats.Count; }