Fix undeclared global variable bug

This commit is contained in:
Wuzzy 2015-05-30 00:53:09 +02:00
parent ebd77f6c36
commit f2e6e6e8ad

View File

@ -288,7 +288,7 @@ else
function mana.hud_add(playername)
local player = minetest.get_player_by_name(playername)
id = player:hud_add({
local id = player:hud_add({
hud_elem_type = "text",
position = { x = 0.5, y=1 },
text = mana.manastring(playername),