Permalink
Browse files

LUProfsSelection: don't show a dummy entry on the last line

  • Loading branch information...
1 parent e4f54b5 commit 2699b5a28afa5e6879535719fd5021d519f64e43 @lynxlynxlynx lynxlynxlynx committed Jun 16, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 gemrb/GUIScripts/LUProfsSelection.py
View
3 gemrb/GUIScripts/LUProfsSelection.py
@@ -335,6 +335,9 @@ def ProfsRedraw (first=0):
MaxProf = ClassWeaponsTable.GetValue (ClassNameSave, ProfsTable.GetRowName(Pos))
else:
MaxProf = ProfsTable.GetValue(Pos+ProfsTableOffset, ProfsColumn)
+ ProfName = ProfsTable.GetValue(Pos+ProfsTableOffset, 1)
+ if ProfName > 0x1000000 or ProfName < 0:
+ MaxProf = 0
cid = i*2+ProfsOffsetButton1
if Profs2ndOffsetButton1 != -1 and i > 7:

0 comments on commit 2699b5a

Please sign in to comment.