diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-17 01:55:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-19 21:53:40 +0300 |
commit | b67565957203e5efae25b1a29d072c1b954ce394 (patch) | |
tree | 79656cad70f21da481be38c611fceca5670e22f1 | |
parent | ec694010abc077a7a8463bccc81bde7c9903a5d7 (diff) | |
download | hercules-b67565957203e5efae25b1a29d072c1b954ce394.tar.gz hercules-b67565957203e5efae25b1a29d072c1b954ce394.tar.bz2 hercules-b67565957203e5efae25b1a29d072c1b954ce394.tar.xz hercules-b67565957203e5efae25b1a29d072c1b954ce394.zip |
Dont show non existing item id=0 errors in rodex.
-rw-r--r-- | src/map/clif.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 527c41fda..93355faca 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -20643,12 +20643,14 @@ static void clif_rodex_read_mail(struct map_session_data *sd, int8 opentype, str size += body_len; for (i = 0; i < RODEX_MAX_ITEM; ++i) { struct item *it = &msg->items[i].item; - struct item_data* data = itemdb->search(it->nameid); + struct item_data *data; int j, k; - if (it->nameid == 0 || data == NULL) { + if (it->nameid == 0) + continue; + data = itemdb->search(it->nameid); + if (data == NULL) continue; - } item = WFIFOP(fd, size); memset(item, 0x0, sizeof(*item)); |