summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-22 15:10:15 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-01-22 15:10:15 +0000
commit265ee7b10968a5368f80ccb47f5b8b8ce5492d89 (patch)
tree189647298d75fa384214e8fbda8aeddff24ea57d /src/map/clif.c
parent7ec5611976e5b04a947cca187bbd33431d2df52c (diff)
downloadhercules-265ee7b10968a5368f80ccb47f5b8b8ce5492d89.tar.gz
hercules-265ee7b10968a5368f80ccb47f5b8b8ce5492d89.tar.bz2
hercules-265ee7b10968a5368f80ccb47f5b8b8ce5492d89.tar.xz
hercules-265ee7b10968a5368f80ccb47f5b8b8ce5492d89.zip
- Removed sd->max_menu, sd->npc_menu is now reused to store what is the max number of valid entries and prevent clients from picking invalid options.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9690 54d463be-8e91-2dee-dedb-b68131a5f0ec
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 aaab364d4..f5fad25e4 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10023,7 +10023,7 @@ void clif_parse_NpcSelectMenu(int fd,struct map_session_data *sd)
RFIFOHEAD(fd);
select = RFIFOB(fd,6);
- if((select > sd->max_menu && select != 0xff) || !select){
+ if((select > sd->npc_menu && select != 0xff) || !select){
ShowWarning("Hack on NPC Select Menu: %s (AID: %d)!\n",sd->status.name,sd->bl.id);
clif_GM_kick(sd,sd,0);
} else {