Merge pull request #36 from Athozus/master
Fix deletion in inbox trivial issue (#35)
This commit is contained in:
commit
831829c9dc
@ -72,7 +72,7 @@ function mail.delete_mail(playername, msg_id)
|
|||||||
local entry = mail.get_storage_entry(playername)
|
local entry = mail.get_storage_entry(playername)
|
||||||
for i, msg in ipairs(entry.inbox) do
|
for i, msg in ipairs(entry.inbox) do
|
||||||
if msg.id == msg_id then
|
if msg.id == msg_id then
|
||||||
table.remove(entry.outbox, i)
|
table.remove(entry.inbox, i)
|
||||||
mail.set_storage_entry(playername, entry)
|
mail.set_storage_entry(playername, entry)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user