mirror of
https://github.com/appgurueu/deathlist.git
synced 2024-10-05 16:53:03 +02:00
Fix crash after some time
This commit is contained in:
parent
b915226444
commit
bfcc16d67e
2
main.lua
2
main.lua
@ -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
|
||||
@ -141,6 +142,7 @@ function remove_last_kill_msg_from_hud(listname, x_offset)
|
||||
list[name]=hud_ids
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function remove_last_kill_message()
|
||||
remove_last_kill_msg_from_hud("killers",-20)
|
||||
|
Loading…
Reference in New Issue
Block a user