From 46a77128a6938b70f210b17cbff42b963fe41030 Mon Sep 17 00:00:00 2001 From: NoM0Re <1629787+NoM0Re@users.noreply.github.com> Date: Thu, 11 Dec 2025 14:14:53 +0100 Subject: [PATCH] (fix/Currency) options table not correctly initialized only after game start (cherry picked from commit 0c5b8cdb655a4aba7fd44a6a7fc2d3fd4ebb167b) --- WeakAuras/Types.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/WeakAuras/Types.lua b/WeakAuras/Types.lua index 025cc07..02979cd 100644 --- a/WeakAuras/Types.lua +++ b/WeakAuras/Types.lua @@ -1569,8 +1569,12 @@ function Private.ExecEnv.GetTotalCountCurrencies(currencyID) end local function InitializeCurrencies() - if Private.discovered_currencies and next(Private.discovered_currencies) then - return + if Private.discovered_currencies then + for key in pairs(Private.discovered_currencies) do + if key ~= "member" then + return + end + end end Private.discovered_currencies = {} Private.discovered_currencies_sorted = {}