From f5c3250ad6d0801dfe2249370246418867f48187 Mon Sep 17 00:00:00 2001 From: Lance Date: Sat, 20 May 2006 15:01:47 +0000 Subject: * jA1983 script.c buildin_menu fix. Thanks to End_of_exam. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6665 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 8dbcb0122..318ac4345 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -2810,6 +2810,7 @@ int buildin_menu(struct script_state *st) //Skip empty menu entries which weren't displayed on the client (blackhole89) for(i=st->start+2;i<=(st->start+sd->npc_menu*2) && sd->npc_menu<(st->end-st->start)/2;i+=2) { + conv_str(st,& (st->stack->stack_data[i])); // we should convert variables to strings before access it [jA1983] [EoE] if((int)strlen(st->stack->stack_data[i].u.str) < 1) sd->npc_menu++; //Empty selection which wasn't displayed on the client. } -- cgit v1.2.3-70-g09d2