Skip to content

Commit

Permalink
Fixed bug whit dual class character:
Browse files Browse the repository at this point in the history
Values returned GUICommon.IsDualClassed treated as Class IDs instead of rows indexes, leading to wrong class determination during level up.
  • Loading branch information
Old Snapo committed Oct 18, 2013
1 parent 37d15c5 commit b4d5745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gemrb/GUIScripts/LevelUp.py
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b4d5745

Please sign in to comment.