summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-29 05:16:01 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-14 20:18:11 +0300
commit42c129494a2b9f9899fb28fb5ca5792ee850ce07 (patch)
tree0fd2e8f3e3068c71f1460df82ee64b9f79da2eed /src/map/clif.c
parent0f3a9dfaf79b0227944f2f4052dd48be3b2588f4 (diff)
downloadhercules-42c129494a2b9f9899fb28fb5ca5792ee850ce07.tar.gz
hercules-42c129494a2b9f9899fb28fb5ca5792ee850ce07.tar.bz2
hercules-42c129494a2b9f9899fb28fb5ca5792ee850ce07.tar.xz
hercules-42c129494a2b9f9899fb28fb5ca5792ee850ce07.zip
Add support for saving/loading barter shops from sql table.
Also allow add duplicated item id to barter shops if price is different.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 2eb60e2e3..eba2ddce3 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -22278,6 +22278,7 @@ static void clif_parse_NPCBarterPurchase(int fd, struct map_session_data *sd)
entry.addId = p->list[i].itemId;
entry.addAmount = p->list[i].amount;
entry.removeIndex = p->list[i].invIndex - 2;
+ entry.shopIndex = p->list[i].shopIndex;
VECTOR_PUSH(item_list, entry);
}