From cf635e4d6fc28800b056bc9d99a145db9ae2694a Mon Sep 17 00:00:00 2001
From: Dennis Friis <peavey@placid.dk>
Date: Thu, 23 Oct 2008 14:26:48 +0000
Subject: oops, fix condition logic since I borrowed this from code that checks
 used slots and not free ones.

---
 src/map/trade.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/map/trade.c b/src/map/trade.c
index 01b6ced..5208292 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -108,7 +108,7 @@ void trade_tradeadditem(struct map_session_data *sd,int index,int amount)
 					// determine free slots of receiver
 					int i, free = 0;
 					for(i=0;i<MAX_INVENTORY;i++){
-						if(target_sd->status.inventory[i].nameid==0 || target_sd->inventory_data[i] == NULL)
+						if(target_sd->status.inventory[i].nameid==0 && target_sd->inventory_data[i] == NULL)
 							free++;
 					}
 					free -= trade_i;
-- 
cgit v1.2.3-70-g09d2