fix empty username fallback
This commit is contained in:
parent
a04890dab9
commit
52f948508c
|
@ -556,7 +556,7 @@ function drawLocalLeaderboard(diff)
|
||||||
local username = scoreTable and scoreTable.playerName
|
local username = scoreTable and scoreTable.playerName
|
||||||
|
|
||||||
-- if for some reason there's a score but no associated username, fall back to skin setting
|
-- if for some reason there's a score but no associated username, fall back to skin setting
|
||||||
if score and not username then
|
if score and username == "" then
|
||||||
username = game.GetSkinSetting("username")
|
username = game.GetSkinSetting("username")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue