diff options
author | Haru <haru@dotalux.com> | 2015-02-05 18:02:09 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-02-05 18:02:09 +0100 |
commit | 56c4c0d997f0776c606a9a9594772f86ea181b68 (patch) | |
tree | 0ee400440e4961de2b37387889fc71fa7da22df5 | |
parent | 5bb9e91e22a1b188210146579b441c9cbdd9880b (diff) | |
download | hercules-56c4c0d997f0776c606a9a9594772f86ea181b68.tar.gz hercules-56c4c0d997f0776c606a9a9594772f86ea181b68.tar.bz2 hercules-56c4c0d997f0776c606a9a9594772f86ea181b68.tar.xz hercules-56c4c0d997f0776c606a9a9594772f86ea181b68.zip |
Follow-up to 49df787e2c2faa2621b5490c6e88c86a4b7a813f
- Corrected a wrong structure member being used in a mob db lookup.
- Fixes bugreport:8516, special thanks to Valo
http://hercules.ws/board/tracker/issue-8516-quest-add-looks-up-objective-count-instead-of-mob-id
Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 1d5bf8e31..a298e6707 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -15391,7 +15391,7 @@ void clif_quest_add(struct map_session_data *sd, struct quest *qd) struct mob_db *monster; WFIFOL(fd, i*30+17) = qi->objectives[i].mob; WFIFOW(fd, i*30+21) = qd->count[i]; - monster = mob->db(qi->objectives[i].count); + monster = mob->db(qi->objectives[i].mob); memcpy(WFIFOP(fd, i*30+23), monster->jname, NAME_LENGTH); } |