diff options
author | Haru <haru@dotalux.com> | 2018-04-03 02:22:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-03 02:22:50 +0200 |
commit | ff2fe99a614aa23c73f63402c67c08f7a4885c4b (patch) | |
tree | 4d5b981fc0c3fa5ac61b0bf7b8e6f3557b542599 /src/map | |
parent | 2bd8bcf86931f2dce4df3d2fef4836657543ca50 (diff) | |
parent | f4fcc01de24e4dc4c59ad1941b7e13ec9015d1d5 (diff) | |
download | hercules-ff2fe99a614aa23c73f63402c67c08f7a4885c4b.tar.gz hercules-ff2fe99a614aa23c73f63402c67c08f7a4885c4b.tar.bz2 hercules-ff2fe99a614aa23c73f63402c67c08f7a4885c4b.tar.xz hercules-ff2fe99a614aa23c73f63402c67c08f7a4885c4b.zip |
Merge pull request #1995 from guilherme-gm/rodex-expire
Fixed wrong rodex loading when mail expire date was manually changed
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/rodex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/rodex.c b/src/map/rodex.c index 0e9e4ee2a..d1b0191ac 100644 --- a/src/map/rodex.c +++ b/src/map/rodex.c @@ -383,7 +383,7 @@ struct rodex_message *rodex_get_mail(struct map_session_data *sd, int64 mail_id) if ((msg->is_deleted == true) || (msg->expire_date < time(NULL) && ((msg->receiver_accountid > 0) || (msg->receiver_id == char_id && msg->sender_id != char_id))) - || ((msg->send_date + 2 * RODEX_EXPIRE) < time(NULL)) + || (msg->expire_date + RODEX_EXPIRE < time(NULL)) ) return NULL; |