Fix a bug with incorrect handling of "Unlearn" and "Level 0"

This commit is contained in:
cncfanatics
2010-10-07 08:04:33 +02:00
parent a4877514b4
commit 89a0ccf513
2 changed files with 2 additions and 2 deletions

View File

@@ -331,7 +331,7 @@ class SkillTreeView (wx.Panel):
def changeLevel(self, event):
level = self.levelIds.get(event.Id)
if level:
if level is not None:
cChar = service.Character.getInstance()
charID = self.Parent.Parent.getActiveCharacter()
selection = self.skillTreeListCtrl.GetSelection()

View File

@@ -103,7 +103,7 @@ class Character():
def changeLevel(self, charID, skillID, level):
char = eos.db.getCharacter(charID)
skill = char.getSkill(skillID)
if level == "Unlearned":
if level == "Not Learned":
skill.learned = False
else:
skill.level = level