Fix assignement to undeclared global variable

This commit is contained in:
sys4-fr 2018-03-26 20:41:41 +02:00
parent 5da4dc87dd
commit 05eb9ab10d
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ minetest.register_on_joinplayer(function(player)
if iplus then
inventory_plus.register_button(player,"specialties","Specialties")
end
name = player:get_player_name()
local name = player:get_player_name()
specialties.players[name] = {}
specialties.players[name].skills = {}
specialties.players[name].skills = specialties.readXP(name)