mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-15 06:01:25 +00:00
Merge pull request #36 from Athozus/master
Fix deletion in inbox trivial issue (#35)
This commit is contained in:
commit
831829c9dc
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ function mail.delete_mail(playername, msg_id)
|
|||
local entry = mail.get_storage_entry(playername)
|
||||
for i, msg in ipairs(entry.inbox) do
|
||||
if msg.id == msg_id then
|
||||
table.remove(entry.outbox, i)
|
||||
table.remove(entry.inbox, i)
|
||||
mail.set_storage_entry(playername, entry)
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue