diff options
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index e48714c4e..a66bd72d5 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -8003,9 +8003,9 @@ void clif_hotkeys_send(struct map_session_data *sd) { const int fd = sd->fd; int i; if (!fd) return; - WFIFOHEAD(fd, 2+HOTKEY_SAVING*7); + WFIFOHEAD(fd, 2+MAX_HOTKEYS*7); WFIFOW(fd, 0) = 0x02b9; - for(i = 0; i < HOTKEY_SAVING; i++) { + for(i = 0; i < MAX_HOTKEYS; i++) { WFIFOB(fd, 2 + 0 + i * 7) = sd->status.hotkeys[i].type; // type: 0: item, 1: skill WFIFOL(fd, 2 + 1 + i * 7) = sd->status.hotkeys[i].id; // item or skill ID WFIFOW(fd, 2 + 5 + i * 7) = sd->status.hotkeys[i].lv; // skill level @@ -8021,7 +8021,7 @@ void clif_parse_Hotkey(int fd, struct map_session_data *sd) { cmd = RFIFOW(fd, 0); idx = RFIFOW(fd, packet_db[sd->packet_ver][cmd].pos[0]); - if (idx >= HOTKEY_SAVING) return; + if (idx >= MAX_HOTKEYS) return; sd->status.hotkeys[idx].type = RFIFOB(fd, packet_db[sd->packet_ver][cmd].pos[1]); sd->status.hotkeys[idx].id = RFIFOL(fd, packet_db[sd->packet_ver][cmd].pos[2]); |