Skip to content

Commit 28e566f

Browse files
committed
Fixed a rare error on lemix
1 parent 337e41e commit 28e566f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/autoPurchaseGenericTalents.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,7 @@ function Module:TRAIT_TREE_CURRENCY_INFO_UPDATED(_, treeID)
404404
end
405405
end
406406

407-
function Module:GetCurrencyInfo(treeID)
408-
local configID = C_Traits.GetConfigIDByTreeID(treeID);
407+
function Module:GetCurrencyInfo(treeID, configID)
409408
local excludeStagedChanges = true;
410409
local currencyInfo = C_Traits.GetTreeCurrencyInfo(configID, treeID, excludeStagedChanges);
411410

@@ -528,7 +527,7 @@ function Module:DoPurchase(configID, treeID, ignoredNodeIDs, delayPurchases, onS
528527

529528
if C_Traits.ConfigHasStagedChanges(configID) then return; end
530529

531-
local currencyInfo = self:GetCurrencyInfo(treeID);
530+
local currencyInfo = self:GetCurrencyInfo(treeID, configID);
532531
if
533532
not currencyInfo or
534533
not currencyInfo[1] or

0 commit comments

Comments
 (0)