/ nil being written to leaderboard cache
This commit is contained in:
parent
7e3e2badc2
commit
4384640c68
|
@ -727,7 +727,6 @@ function onIrLeaderboardFetched(res)
|
|||
|
||||
local song = songwheel.songs[selectedIndex];
|
||||
local diff = song and song.difficulties[selectedDifficulty] or false;
|
||||
irLeaderboardsCache[diff.hash] = irLeaderboard;
|
||||
game.Log(diff.hash, game.LOGGER_ERROR)
|
||||
|
||||
if res.statusCode == IRData.States.Success then
|
||||
|
@ -744,6 +743,7 @@ function onIrLeaderboardFetched(res)
|
|||
-- end
|
||||
|
||||
irLeaderboard = tempIrLB;
|
||||
irLeaderboardsCache[diff.hash] = irLeaderboard;
|
||||
|
||||
game.Log(dump(irLeaderboard), game.LOGGER_ERROR)
|
||||
else
|
||||
|
@ -1017,7 +1017,7 @@ set_diff = function(newDiff)
|
|||
end
|
||||
|
||||
selectedDifficulty = newDiff;
|
||||
irRequestStatus = 1;
|
||||
irLeaderboard = {}
|
||||
irRequestStatus = 1;
|
||||
irRequestTimeout = 2
|
||||
end;
|
Loading…
Reference in New Issue