Skip to content

Commit 41b1324

Browse files
author
LocalIdentity
committed
Fix league name and scourge ui anchor
pbLeagueRealName does not exist. The correct variable is pbLeague The scourge anchor has a typo in it
1 parent 8889bdc commit 41b1324

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Classes/TradeQueryGenerator.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ function TradeQueryGeneratorClass:RequestQuery(slot, context, statWeights, callb
12181218
--controls.includeSynthesis.state = (self.lastIncludeSynthesis == nil or self.lastIncludeSynthesis == true)
12191219

12201220
local lastItemAnchor = controls.includeCorrupted
1221-
local includeScourge = self.queryTab.pbLeagueRealName == "Standard" or self.queryTab.pbLeagueRealName == "Hardcore"
1221+
local includeScourge = self.queryTab.pbLeague == "Standard" or self.queryTab.pbLeague == "Hardcore"
12221222

12231223
local function updateLastAnchor(anchor, height)
12241224
lastItemAnchor = anchor
@@ -1239,7 +1239,7 @@ function TradeQueryGeneratorClass:RequestQuery(slot, context, statWeights, callb
12391239
if not isJewelSlot and not isAbyssalJewelSlot and includeScourge then
12401240
controls.includeScourge = new("CheckBoxControl", {"TOPRIGHT",lastItemAnchor,"BOTTOMRIGHT"}, {0, 5, 18}, "Scourge Mods:", function(state) end)
12411241
controls.includeScourge.state = (self.lastIncludeScourge == nil or self.lastIncludeScourge == true)
1242-
updateLastAnchor(controls.includrecteScourge)
1242+
updateLastAnchor(controls.includeScourge)
12431243
end
12441244

12451245
if isAmuletSlot then

0 commit comments

Comments
 (0)