diff options
author | shennetsind <ind@henn.et> | 2014-09-20 21:23:52 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-09-20 21:23:52 -0300 |
commit | f806586acc2e34068b5e125661916caa594de04f (patch) | |
tree | c8e365d1b417cb889fca0a57192ee9d3005381ea /src | |
parent | 7a76d8f3ce4f9cd54289c34c6dbc73cdce6e6496 (diff) | |
download | hercules-f806586acc2e34068b5e125661916caa594de04f.tar.gz hercules-f806586acc2e34068b5e125661916caa594de04f.tar.bz2 hercules-f806586acc2e34068b5e125661916caa594de04f.tar.xz hercules-f806586acc2e34068b5e125661916caa594de04f.zip |
Fixed Bug 8151
map server will no longer complain when it receives mail data for a character that is no longer online (its a pretty silly thing, consider you login, it requests mail data, you logout while it still hasn't arrived -> it annoys you with a warning when it arrives)
Special Thanks to Frost!
http://hercules.ws/board/tracker/issue-8151-at-first-time-show-error-in-console/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/intif.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/intif.c b/src/map/intif.c index be82a7583..fc38e82e3 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -1567,10 +1567,8 @@ void intif_parse_MailInboxReceived(int fd) { sd = map->charid2sd(RFIFOL(fd,4)); - if (sd == NULL) { - ShowError("intif_parse_MailInboxReceived: char not found %d\n",RFIFOL(fd,4)); + if (sd == NULL) /** user is not online anymore and its ok (quest log also does this) **/ return; - } if (RFIFOW(fd,2) - 9 != sizeof(struct mail_data)) { ShowError("intif_parse_MailInboxReceived: data size mismatch %d != %"PRIuS"\n", RFIFOW(fd,2) - 9, sizeof(struct mail_data)); |