(fix/Currency) options table not correctly initialized only after game start
(cherry picked from commit 0c5b8cdb655a4aba7fd44a6a7fc2d3fd4ebb167b)
This commit is contained in:
parent
83c8ebe861
commit
46a77128a6
1 changed files with 6 additions and 2 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue