Fix crash after some time

This commit is contained in:
Lars Mueller 2020-11-28 15:47:11 +01:00
parent b915226444
commit bfcc16d67e

@ -126,6 +126,7 @@ function remove_last_kill_msg_from_hud(listname, x_offset)
local name=player:get_player_name()
local hud_ids=list[name]
local i=#list[name]
if i > 0 then
if mode=="list" then
player:hud_remove(hud_ids[i])
hud_ids[i]=nil
@ -140,6 +141,7 @@ function remove_last_kill_msg_from_hud(listname, x_offset)
end
list[name]=hud_ids
end
end
end
function remove_last_kill_message()