Skip to content

Commit 5cb0d97

Browse files
committed
?.:find()
1 parent ce60e29 commit 5cb0d97

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Classes/TradeQueryGenerator.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,12 +772,13 @@ function TradeQueryGeneratorClass:ExecuteQuery()
772772
if self.calcContext.options.includeScourge then
773773
self:GenerateModWeights(self.modData["Scourge"])
774774
end
775-
if self.calcContext.options.includeEldritch:find("^Keep") and
775+
local eldritchOption = self.calcContext.options.includeEldritch
776+
if eldritchOption and eldritchOption:find("^Keep") and
776777
-- skip weights if we need an influenced item as they can produce really
777778
-- bad results due to the filter limit
778779
self.calcContext.options.influence1 == 1 and
779780
self.calcContext.options.influence2 == 1 then
780-
local omitConditional = self.calcContext.options.includeEldritch == "Keep regular"
781+
local omitConditional = eldritchOption == "Keep regular"
781782
local eaterMods = self.modData["Eater"]
782783
local exarchMods = self.modData["Exarch"]
783784
if omitConditional then

0 commit comments

Comments
 (0)