Skip to content

Commit

Permalink
Fix Trade Query Stat Weight Crash (#8278)
Browse files Browse the repository at this point in the history
* Fix Trade Query Stat Weight Crash

* Update TradeQuery.lua

---------

Co-authored-by: LocalIdentity <31035929+LocalIdentity@users.noreply.github.com>
  • Loading branch information
Regisle and LocalIdentity authored Sep 20, 2024
1 parent 0257630 commit 6363a9f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Classes/TradeQuery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,11 @@ end

-- Popup to set stat weight multipliers for sorting
function TradeQueryClass:SetStatWeights(previousSelectionList)
local controls = { }
local statList = { }
previousSelectionList = previousSelectionList or {}
local controls = { }
local statList = { }
local sliderController = { index = 1 }
local popupHeight = 285
local popupHeight = 285

controls.ListControl = new("TradeStatWeightMultiplierListControl", {"TOPLEFT", nil, "TOPRIGHT"}, {-410, 45, 400, 200}, statList, sliderController)

Expand Down

0 comments on commit 6363a9f

Please sign in to comment.