summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/storage.c')
-rw-r--r--src/map/storage.c4
1 files changed, 4 insertions, 0 deletions
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;i<MAX_STORAGE;i++){
if(stor->storage[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;i<MAX_STORAGE;i++){
if(stor->storage[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 && index<MAX_STORAGE) { // valid index
if( (amount <= stor->storage[index].amount) && (amount > 0) ) { //valid amount