(fix/Currency) options table not correctly initialized only after game start
(cherry picked from commit 0c5b8cdb655a4aba7fd44a6a7fc2d3fd4ebb167b)
This commit is contained in:
+6
-2
@@ -1569,8 +1569,12 @@ function Private.ExecEnv.GetTotalCountCurrencies(currencyID)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function InitializeCurrencies()
|
local function InitializeCurrencies()
|
||||||
if Private.discovered_currencies and next(Private.discovered_currencies) then
|
if Private.discovered_currencies then
|
||||||
return
|
for key in pairs(Private.discovered_currencies) do
|
||||||
|
if key ~= "member" then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
Private.discovered_currencies = {}
|
Private.discovered_currencies = {}
|
||||||
Private.discovered_currencies_sorted = {}
|
Private.discovered_currencies_sorted = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user