summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-09-17 11:21:23 -0600
committerJared Adams <jaxad0127@gmail.com>2009-09-17 11:22:41 -0600
commitb3939b91deda8081c5b144109829599b05e81272 (patch)
treefaf8566ef6a310aa80a74ca1f6aa37ade8d4d767
parentf56cd8a8b05817d725e44143654d2256e440b236 (diff)
downloadtmwa-b3939b91deda8081c5b144109829599b05e81272.tar.gz
tmwa-b3939b91deda8081c5b144109829599b05e81272.tar.bz2
tmwa-b3939b91deda8081c5b144109829599b05e81272.tar.xz
tmwa-b3939b91deda8081c5b144109829599b05e81272.zip
Prevent trading with other players who are shoping
-rw-r--r--src/map/trade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index 31f29ce..9e99ef1 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -28,7 +28,7 @@ void trade_traderequest(struct map_session_data *sd,int target_id)
return;
}
}
- if (target_sd->npc_id)
+ if (target_sd->npc_id || target_sd->npc_shopid)
{
//Trade fails if you are using an NPC.
clif_tradestart(sd, 2);