summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-10-11 18:24:20 -0400
committergumi <git@gumi.ca>2018-10-11 19:17:08 -0400
commit5c59f230d982a2e0201956a6f9f853253b9f3c5f (patch)
tree80f33f1f81da54249ef8c4ade5179c1e5ff33605 /src/map/clif.c
parente3df7d8ebda36542c477beba281dfc3f9c737af4 (diff)
downloadhercules-5c59f230d982a2e0201956a6f9f853253b9f3c5f.tar.gz
hercules-5c59f230d982a2e0201956a6f9f853253b9f3c5f.tar.bz2
hercules-5c59f230d982a2e0201956a6f9f853253b9f3c5f.tar.xz
hercules-5c59f230d982a2e0201956a6f9f853253b9f3c5f.zip
add constants for max menu length and options
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 1e9844f14..8871dda76 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -12342,7 +12342,7 @@ static void clif_parse_NpcSelectMenu(int fd, struct map_session_data *sd)
int npc_id = RFIFOL(fd,2);
uint8 select = RFIFOB(fd,6);
- if( (select > sd->npc_menu && select != 0xff) || select == 0 ) {
+ if( (select > sd->npc_menu && select != MAX_MENU_OPTIONS) || select == 0 ) {
#ifdef SECURE_NPCTIMEOUT
if( sd->npc_idle_timer != INVALID_TIMER ) {
#endif