Add break at end of deleting loop

This commit is contained in:
Athozus 2023-06-14 22:08:54 +02:00
parent 8844454775
commit ab47f9b0eb
No known key found for this signature in database
GPG key ID: B50895022E8484BF

View file

@ -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