Skip to content

Commit 0f6dd21

Browse files
authored
Fixed an error when logging into a freshly created remix character
1 parent f100ed3 commit 0f6dd21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/autoPurchaseGenericTalents.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ function Module:OnInitialize()
8888
self.defferedPurchaseFrame = CreateFrame('Frame');
8989
self.defferedPurchaseFrame:Hide();
9090
self.defferedPurchaseFrame:SetScript('OnUpdate', function()
91-
self:PurchaseTalents();
9291
self.defferedPurchaseFrame:Hide();
92+
self:PurchaseTalents();
9393
end);
9494

9595
EventRegistry:RegisterCallback('SetItemRef', function(_, link, text)
@@ -437,6 +437,7 @@ function Module:GetLemixConfigID()
437437
if not self.lemixConfigIDBySpecID[specID] then
438438
local shown = RemixArtifactFrame and RemixArtifactFrame:IsShown();
439439
SocketInventoryItem(16);
440+
if not RemixArtifactFrame then return; end -- happens when you don't have the artifact weapon yet
440441

441442
self.lemixConfigIDBySpecID[specID] = RemixArtifactFrame:GetConfigID();
442443
if not shown then

0 commit comments

Comments
 (0)