From 0a5fd3119d97283ad892613546832105cb38bcce Mon Sep 17 00:00:00 2001 From: Corollax Date: Sat, 20 Nov 2010 07:18:48 -0600 Subject: [PATCH] Fixed a bug with the Selected Ammo pattern Apparently is != == Please define what "is" is. --- gui/patternEditor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/patternEditor.py b/gui/patternEditor.py index 285f03eb6..4d1dac459 100644 --- a/gui/patternEditor.py +++ b/gui/patternEditor.py @@ -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)