summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 9ae8e3d55..3cce74af1 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -12014,8 +12014,8 @@ int buildin_npcshopattach(struct script_state *st)
char* npcname = conv_str(st, & (st->stack->stack_data[st->start+2]));
int flag = 1;
- if( script_hasdata(st,2) )
- flag = conv_num(st, script_getdata(st,2));
+ if( script_hasdata(st,3) )
+ flag = conv_num(st, script_getdata(st,3));
nd = npc_name2id(npcname);