Skip to content

Commit

Permalink
GetPortraitButtonPairs: use the right count for the party reform wind…
Browse files Browse the repository at this point in the history
…ow too
  • Loading branch information
lynxlynxlynx committed Aug 17, 2016
1 parent 4e538f9 commit 1cb93e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemrb/GUIScripts/GUICommonWindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ def GetPortraitButtonPairs (Window, ExtraSlots=0, Mode="vertical"):
pairs = {}
oldSlotCount = 6 + ExtraSlots

for i in range(min(oldSlotCount, MAX_PARTY_SIZE)): # the default chu/game limit or less
for i in range(min(oldSlotCount, MAX_PARTY_SIZE + ExtraSlots)): # the default chu/game limit or less
pairs[i] = Window.GetControl (i)

# nothing left to do
Expand Down

0 comments on commit 1cb93e9

Please sign in to comment.