diff options
author | Guilherme G. Menaldo <guilherme.menaldo@outlook.com> | 2018-03-03 10:52:44 -0300 |
---|---|---|
committer | Guilherme G. Menaldo <guilherme.menaldo@outlook.com> | 2018-03-09 00:37:37 -0300 |
commit | 442162e0baf6d085ffde26fb7fafd9877338f868 (patch) | |
tree | 6f71456840e77c737f3b808e9063c40fd66904c6 /src | |
parent | 44d77dc0190324f1b36adae0d98845468b863b65 (diff) | |
download | hercules-442162e0baf6d085ffde26fb7fafd9877338f868.tar.gz hercules-442162e0baf6d085ffde26fb7fafd9877338f868.tar.bz2 hercules-442162e0baf6d085ffde26fb7fafd9877338f868.tar.xz hercules-442162e0baf6d085ffde26fb7fafd9877338f868.zip |
Fixed a missing update on cached data when rodex attachment was retrieved, avoiding message to be deleted. Thanks @tlacson7
Diffstat (limited to 'src')
-rw-r--r-- | src/map/rodex.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |