diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-02-05 19:53:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-02-11 03:22:46 +0300 |
commit | 772578af2f989b5f44df5f6514804a36181224bf (patch) | |
tree | ea6b35572651655d366a0c3e75f80ad19381cae0 /src/char/mapif.c | |
parent | bcc2cb2ca1663d55dbcad3389e95836481c9ddc3 (diff) | |
download | hercules-772578af2f989b5f44df5f6514804a36181224bf.tar.gz hercules-772578af2f989b5f44df5f6514804a36181224bf.tar.bz2 hercules-772578af2f989b5f44df5f6514804a36181224bf.tar.xz hercules-772578af2f989b5f44df5f6514804a36181224bf.zip |
Extend class field in packet 0x3880
Diffstat (limited to 'src/char/mapif.c')
-rw-r--r-- | src/char/mapif.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/char/mapif.c b/src/char/mapif.c index b35543d31..7dd2aba98 100644 --- a/src/char/mapif.c +++ b/src/char/mapif.c @@ -1427,14 +1427,14 @@ static int mapif_pet_created(int fd, int account_id, struct s_pet *p) WFIFOW(fd, 0) = 0x3880; WFIFOL(fd, 2) = account_id; if (p != NULL){ - WFIFOW(fd, 6) = p->class_; - WFIFOL(fd, 8) = p->pet_id; + WFIFOL(fd, 6) = p->class_; + WFIFOL(fd, 10) = p->pet_id; ShowInfo("int_pet: created pet %d - %s\n", p->pet_id, p->name); } else { - WFIFOB(fd, 6) = 0; - WFIFOL(fd, 8) = 0; + WFIFOL(fd, 6) = 0; + WFIFOL(fd, 10) = 0; } - WFIFOSET(fd, 12); + WFIFOSET(fd, 14); return 0; } |