blowfishpro / B9PartSwitch

A Kerbal Space Program plugin designed to implement switching of part meshes, resources, and nodes
GNU Lesser General Public License v3.0
50 stars 33 forks source link

UI switcher screws up indices with tech limits #173

Closed blowfishpro closed 4 years ago

blowfishpro commented 4 years ago

this index will be wrong since the counter keeps incrementing even for a skipped subtype: https://github.com/blowfishpro/B9PartSwitch/blob/1fb57d99208dace74522417c5cc6798906bc51fa/B9PartSwitch/UI/UIPartActionSubtypeSelector.cs#L77

this index is not correct since the number of unlocked subtypes may be less than the actual number of subtypes: https://github.com/blowfishpro/B9PartSwitch/blob/1fb57d99208dace74522417c5cc6798906bc51fa/B9PartSwitch/UI/UIPartActionSubtypeSelector.cs#L98

Gordon-Dry commented 4 years ago

Yeah, sometimes I'm not "just complaining" - I'm a bughunter. Well, mostly. In my opinion at least. ;)