summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-03 01:37:55 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-05 22:24:25 +0300
commit7923cecc16aad3ff6fb80070240e99e667af1d6c (patch)
tree62c6a1e813eb5794ea91e970f5aac0cb355cae37 /src/map/trade.c
parent19a162b61f14883ae0a2e25b6252796cc4c77cb9 (diff)
downloadhercules-7923cecc16aad3ff6fb80070240e99e667af1d6c.tar.gz
hercules-7923cecc16aad3ff6fb80070240e99e667af1d6c.tar.bz2
hercules-7923cecc16aad3ff6fb80070240e99e667af1d6c.tar.xz
hercules-7923cecc16aad3ff6fb80070240e99e667af1d6c.zip
Add missing checks for prevend flag
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index 9c284ba23..cef14ffe6 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -163,8 +163,8 @@ static void trade_tradeack(struct map_session_data *sd, int type)
}
//Check if you can start trade.
- if (sd->npc_id || sd->state.vending || sd->state.buyingstore || sd->state.storage_flag != STORAGE_FLAG_CLOSED
- || tsd->npc_id || tsd->state.vending || tsd->state.buyingstore || tsd->state.storage_flag != STORAGE_FLAG_CLOSED
+ if (sd->npc_id || sd->state.vending || sd->state.prevend || sd->state.buyingstore || sd->state.storage_flag != STORAGE_FLAG_CLOSED
+ || tsd->npc_id || tsd->state.vending || tsd->state.prevend || tsd->state.buyingstore || tsd->state.storage_flag != STORAGE_FLAG_CLOSED
) {
//Fail
clif->tradestart(sd, 2);