Skip to content

Commit

Permalink
Fixed crash when party list is out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
tirem committed Aug 19, 2023
1 parent 357fd97 commit 30ee2e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions XivParty/uiPartyList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ function uiPartyList:init(layout, partyIndex, model, isUiLocked)
if pos.x >= resX then
pos.x = resX - layout.columns * layout.columnWidth * scale.x

print('UI out of bounds! Adjusting \'' .. Settings:partyIndexToName(self.partyIndex) .. '\' X position to ' .. tostring(pos.x))
print('UI out of bounds! Adjusting \'' .. partyIndexToName(self.partyIndex) .. '\' X position to ' .. tostring(pos.x))
setUiPosition(pos.x, pos.y, self.partyIndex)
saveSettings = true
end

if pos.y >= resY then
pos.y = resY - layout.rows * layout.rowHeight * scale.y

print('UI out of bounds! Adjusting \'' .. Settings:partyIndexToName(self.partyIndex) .. '\' Y position to ' .. tostring(pos.y))
print('UI out of bounds! Adjusting \'' .. partyIndexToName(self.partyIndex) .. '\' Y position to ' .. tostring(pos.y))
setUiPosition(pos.x, pos.y, self.partyIndex)
saveSettings = true
end
Expand Down
2 changes: 1 addition & 1 deletion XivParty/xivparty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ local bUseDebugStatusLib = false;

addon.name = 'XivParty'
addon.author = 'Tirem (Porting and Updates), Tylas (Original Creator)'
addon.version = '1.1.1'
addon.version = '1.1.2'

-- windower library imports
if (bUseDebugStatusLib) then
Expand Down

0 comments on commit 30ee2e5

Please sign in to comment.