From 5b1d1678fd03d6c780e933f6e464e3b02a860c0d Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 6 Jul 2006 21:22:20 +0000 Subject: - Rewrote all the item restriction functions so that they will take into account slotted card restrictions as well. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7552 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/vending.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/vending.c') diff --git a/src/map/vending.c b/src/map/vending.c index 6d26ef518..073a21303 100644 --- a/src/map/vending.c +++ b/src/map/vending.c @@ -231,7 +231,7 @@ void vending_openvending(struct map_session_data *sd,int len,char *message,int f for(i = 0, j = 0; (85 + 8 * j < len) && (i < MAX_VENDING); i++, j++) { sd->vending[i].index = *(short*)(p+8*j)-2; if (sd->vending[i].index < 0 || sd->vending[i].index >= MAX_CART || - !itemdb_cantrade(sd->status.cart[sd->vending[i].index].nameid, pc_isGM(sd), pc_isGM(sd))) + !itemdb_cantrade(&sd->status.cart[sd->vending[i].index], pc_isGM(sd), pc_isGM(sd))) { i--; //Preserve the vending index, skip to the next item. continue; -- cgit v1.2.3-70-g09d2