From bdc081d262eeb2adb3f3352026be431b846e48b1 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 10 Mar 2009 15:53:39 -0600 Subject: Apply sanity checks from Wombat --- src/map/storage.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/storage.c') diff --git a/src/map/storage.c b/src/map/storage.c index ca7fa8b..3edd7b8 100644 --- a/src/map/storage.c +++ b/src/map/storage.c @@ -140,6 +140,7 @@ int storage_additem(struct map_session_data *sd,struct storage *stor,struct item i=MAX_STORAGE; if(!itemdb_isequip2(data)){ + printf("A"); // 装備品ではないので、既所有品なら個数のみ変化させる for(i=0;istorage[i].nameid == item_data->nameid && @@ -154,6 +155,7 @@ int storage_additem(struct map_session_data *sd,struct storage *stor,struct item } } if(i>=MAX_STORAGE){ + printf("B"); // 装備品か未所有品だったので空き欄へ追加 for(i=0;istorage[i].nameid==0){ @@ -228,6 +230,8 @@ int storage_storageget(struct map_session_data *sd,int index,int amount) nullpo_retr(0, sd); nullpo_retr(0, stor=account2storage(sd->status.account_id)); + printf("A!\n"); + if(stor->storage_status == 1) { // storage open if(index>=0 && indexstorage[index].amount) && (amount > 0) ) { //valid amount -- cgit v1.2.3-60-g2f50