From 441ea645326ddd951dbeaeb11b4043dd2506dd59 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Wed, 24 Jun 2009 23:33:15 +0200 Subject: Fix logic invertion on storage amount. From ea stable. --- src/map/storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/storage.c') diff --git a/src/map/storage.c b/src/map/storage.c index a2f8cf2..09dc17b 100644 --- a/src/map/storage.c +++ b/src/map/storage.c @@ -247,7 +247,7 @@ int storage_storageadd(struct map_session_data *sd,int index,int amount) if(sd->status.inventory[index].nameid <= 0) return 0; //No item on that spot - if(amount < 1 || amount < sd->status.inventory[index].amount) + if(amount < 1 || amount > sd->status.inventory[index].amount) return 0; // log_tostorage(sd, index, 0); -- cgit v1.2.3-60-g2f50