forked from VoxeLibre/VoxeLibre
Merge pull request 'Fix local name memory leak' (#1456) from jordan4ibanez/MineClone2-PopSounds:master into master
Reviewed-on: MineClone2/MineClone2#1456
This commit is contained in:
commit
0b0a180343
|
@ -6,14 +6,14 @@ local pool = {}
|
|||
|
||||
local tick = false
|
||||
|
||||
local name
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
local name
|
||||
name = player:get_player_name()
|
||||
pool[name] = 0
|
||||
end)
|
||||
|
||||
local name
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
local name
|
||||
name = player:get_player_name()
|
||||
pool[name] = nil
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue