fix empty username fallback

This commit is contained in:
Hersi 2023-11-10 11:13:32 +01:00
parent a04890dab9
commit 52f948508c
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ function drawLocalLeaderboard(diff)
local username = scoreTable and scoreTable.playerName
-- 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")
end