summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-18 07:55:41 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-18 07:55:41 +0000
commitab7dd40694d378a5c3f52ff5d8ec43a53803b79c (patch)
tree733670529e02caf3666d0fbd115a1d1221ef26c2 /src/map/storage.c
parentc782ab3c206324ce4e9f92939db5c218f3830476 (diff)
downloadhercules-ab7dd40694d378a5c3f52ff5d8ec43a53803b79c.tar.gz
hercules-ab7dd40694d378a5c3f52ff5d8ec43a53803b79c.tar.bz2
hercules-ab7dd40694d378a5c3f52ff5d8ec43a53803b79c.tar.xz
hercules-ab7dd40694d378a5c3f52ff5d8ec43a53803b79c.zip
update
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@603 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/storage.c')
-rw-r--r--src/map/storage.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index fcc70845d..9c960f6d1 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -142,7 +142,10 @@ int storage_additem(struct map_session_data *sd,struct storage *stor,struct item
if(!itemdb_isequip2(data)){
// 装備品ではないので、既所有品なら個数のみ変化させる
for(i=0;i<MAX_STORAGE;i++){
- if(stor->storage[i].nameid == item_data->nameid &&
+ if( stor->storage[i].nameid == item_data->nameid &&
+ stor->storage[i].identify == item_data->identify &&
+ stor->storage[i].refine == item_data->refine &&
+ stor->storage[i].attribute == item_data->attribute &&
stor->storage[i].card[0] == item_data->card[0] && stor->storage[i].card[1] == item_data->card[1] &&
stor->storage[i].card[2] == item_data->card[2] && stor->storage[i].card[3] == item_data->card[3]){
if(stor->storage[i].amount+amount > MAX_AMOUNT)