From f806586acc2e34068b5e125661916caa594de04f Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 20 Sep 2014 21:23:52 -0300 Subject: 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 --- src/map/intif.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/map') 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)); -- cgit v1.2.3-70-g09d2