diff options
author | Guilherme G. Menaldo <guilherme.menaldo@outlook.com> | 2018-03-20 22:39:55 -0300 |
---|---|---|
committer | Guilherme G. Menaldo <guilherme.menaldo@outlook.com> | 2018-03-20 22:39:55 -0300 |
commit | f4fcc01de24e4dc4c59ad1941b7e13ec9015d1d5 (patch) | |
tree | 5f3eb0a3ebc7b8371953e443948ca3de4a3dfdb0 /src/map/rodex.c | |
parent | 38527550c17241e1c905f8077f6589413091087e (diff) | |
download | hercules-f4fcc01de24e4dc4c59ad1941b7e13ec9015d1d5.tar.gz hercules-f4fcc01de24e4dc4c59ad1941b7e13ec9015d1d5.tar.bz2 hercules-f4fcc01de24e4dc4c59ad1941b7e13ec9015d1d5.tar.xz hercules-f4fcc01de24e4dc4c59ad1941b7e13ec9015d1d5.zip |
Fixed wrong rodex loading when mail expire date was manually changed
Diffstat (limited to 'src/map/rodex.c')
-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; |