(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
|
||||
|
||||
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 = {}
|
||||
|
||||
Reference in New Issue
Block a user