mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
Add break at end of deleting loop
This commit is contained in:
parent
8844454775
commit
ab47f9b0eb
1 changed files with 1 additions and 0 deletions
|
@ -178,6 +178,7 @@ function mail.delete_mail(playername, msg_ids, delete_in_trash)
|
|||
for _, deleted_msg in ipairs(msg_ids) do
|
||||
if entry.trash[i].id == deleted_msg then
|
||||
table.remove(entry.trash, i)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue