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/storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/storage.c') diff --git a/src/map/storage.c b/src/map/storage.c index 29b48527d..0a54f0dde 100644 --- a/src/map/storage.c +++ b/src/map/storage.c @@ -168,7 +168,7 @@ static int storage_additem(struct map_session_data *sd,struct storage *stor,stru data = itemdb_search(item_data->nameid); - if (!itemdb_canstore(item_data->nameid, pc_isGM(sd))) + if (!itemdb_canstore(item_data, pc_isGM(sd))) { //Check if item is storable. [Skotlex] clif_displaymessage (sd->fd, msg_txt(264)); return 1; @@ -517,7 +517,7 @@ int guild_storage_additem(struct map_session_data *sd,struct guild_storage *stor if(item_data->nameid <= 0 || amount <= 0) return 1; - if (!itemdb_canguildstore(item_data->nameid, pc_isGM(sd))) + if (!itemdb_canguildstore(item_data, pc_isGM(sd))) { //Check if item is storable. [Skotlex] clif_displaymessage (sd->fd, msg_txt(264)); return 1; -- cgit v1.2.3-70-g09d2