From 442162e0baf6d085ffde26fb7fafd9877338f868 Mon Sep 17 00:00:00 2001 From: "Guilherme G. Menaldo" Date: Sat, 3 Mar 2018 10:52:44 -0300 Subject: Fixed a missing update on cached data when rodex attachment was retrieved, avoiding message to be deleted. Thanks @tlacson7 --- src/map/rodex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/map/rodex.c b/src/map/rodex.c index e6bf7d216..8626f76e1 100644 --- a/src/map/rodex.c +++ b/src/map/rodex.c @@ -456,6 +456,7 @@ void rodex_get_zeny(struct map_session_data *sd, int8 opentype, int64 mail_id) return; } + msg->type &= ~MAIL_TYPE_ZENY; msg->zeny = 0; intif->rodex_updatemail(mail_id, 1); @@ -539,6 +540,8 @@ void rodex_get_items(struct map_session_data *sd, int8 opentype, int64 mail_id) } } + msg->type &= ~MAIL_TYPE_ITEM; + msg->items_count = 0; intif->rodex_updatemail(mail_id, 2); clif->rodex_request_items(sd, opentype, mail_id, RODEX_GET_ITEMS_SUCCESS); -- cgit v1.2.3-70-g09d2