Permalink
Browse files

Fixed bug whit dual class character:

Values returned GUICommon.IsDualClassed treated as Class IDs instead of rows indexes, leading to wrong class determination during level up.
  • Loading branch information...
1 parent 37d15c5 commit b4d57454eff1c772bd414c1a1736bd7170f1b7ec Old Snapo 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 b4d5745

Please sign in to comment.