Fixed a bug with the Selected Ammo pattern

Apparently is != ==

Please define what "is" is. </BillClinton>
This commit is contained in:
Corollax
2010-11-20 07:18:48 -06:00
parent c2f115b310
commit 0a5fd3119d

View File

@@ -40,9 +40,9 @@ class DmgPatternEditorDlg (wx.Dialog):
cDP = service.DamagePattern.getInstance()
self.choices = cDP.getDamagePatternList()
# Remove "Selected Ammo" Damage Patterns
# Remove "Selected Ammo" Damage Pattern
for dp in self.choices:
if dp.name is "Selected Ammo":
if dp.name == "Selected Ammo":
self.choices.remove(dp)
# Sort the remaining list and continue on
self.choices.sort(key=lambda p: p.name)