fix crash through wrong variable use

This commit is contained in:
cora 2022-05-21 16:59:12 +02:00 committed by Gitea
parent b74cfc0142
commit 2091c6ac72
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ minetest.register_on_joinplayer(function(player)
end)
minetest.register_on_leaveplayer(function(player)
if multi_map.hud.enabled and player_huds[player:get_player_name()] then
player_huds[player:get_player_name()] = nil
if multi_map.hud.enabled and saved_huds[player:get_player_name()] then
saved_huds[player:get_player_name()] = nil
end
end)