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 6597b3eae..f14d0179e 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -13476,8 +13476,8 @@ BUILDIN_FUNC(waitingroom2bg)
int x, y, i, mapindex = 0, bg_id, n;
struct map_session_data *sd;
- if( script_hasdata(st,8) )
- nd = npc_name2id(script_getstr(st,8));
+ if( script_hasdata(st,7) )
+ nd = npc_name2id(script_getstr(st,7));
else
nd = (struct npc_data *)map_id2bl(st->oid);