(fix/Currency) options table not correctly initialized only after game start

(cherry picked from commit 0c5b8cdb655a4aba7fd44a6a7fc2d3fd4ebb167b)
This commit is contained in:
NoM0Re
2025-12-11 14:14:53 +01:00
committed by andrew6180
parent 83c8ebe861
commit 46a77128a6
+5 -1
View File
@@ -1569,9 +1569,13 @@ function Private.ExecEnv.GetTotalCountCurrencies(currencyID)
end
local function InitializeCurrencies()
if Private.discovered_currencies and next(Private.discovered_currencies) then
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 = {}
Private.discovered_currencies_headers = {}