Permalink
Browse files

Merge pull request #8 from OldSnapo/master

Fixed bug whit dual class character
  • Loading branch information...
2 parents 37d15c5 + b4d5745 commit 88bbd164cf897cfb6bb28ca6357f6b4adea23994 @lynxlynxlynx lynxlynxlynx committed Oct 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 gemrb/GUIScripts/LevelUp.py
@@ -173,7 +173,7 @@ def OpenLevelUpWindow():
if IsDual[0] == 1: # kit
Classes[1] = CommonTables.KitList.GetValue (IsDual[1], 7)
else: # class
- TmpClassName = GUICommon.GetClassRowName (Classes[1], "class")
+ TmpClassName = GUICommon.GetClassRowName (Classes[1], "index")
Classes[1] = CommonTables.Classes.GetValue (TmpClassName, "ID")
# store a boolean for IsDual
@@ -189,7 +189,7 @@ def OpenLevelUpWindow():
if IsDual:
# convert the classes from indicies to class id's
DualSwap = GUICommon.IsDualSwap (pc)
- ClassName = GUICommon.GetClassRowName (Classes[0], "class")
+ ClassName = GUICommon.GetClassRowName (Classes[0], "index")
KitName = ClassName # for simplicity throughout the code
Classes[0] = CommonTables.Classes.GetValue (ClassName, "ID")
# Class[1] is taken care of above

0 comments on commit 88bbd16

Please sign in to comment.