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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index ea8e26c23..88380af29 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -13816,6 +13816,9 @@ BUILDIN_FUNC(callshop)
if( nd->subtype == SHOP )
{
+ // flag the user as using a valid script call for opening the shop (for floating NPCs)
+ sd->state.callshop = 1;
+
switch( flag )
{
case 1: npc_buysellsel(sd,nd->bl.id,0); break; //Buy window