summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-21 02:41:35 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-21 02:41:35 +0000
commite98991a2562ef1a8289e87ae306590c60cd32a66 (patch)
tree2f98ea80508df69b79537237933fb1d083bd6ece /src/map/storage.c
parent986541f9636b4f0375e8bce5f7f9467b3f0dda20 (diff)
downloadhercules-e98991a2562ef1a8289e87ae306590c60cd32a66.tar.gz
hercules-e98991a2562ef1a8289e87ae306590c60cd32a66.tar.bz2
hercules-e98991a2562ef1a8289e87ae306590c60cd32a66.tar.xz
hercules-e98991a2562ef1a8289e87ae306590c60cd32a66.zip
update
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@695 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/storage.c')
-rw-r--r--src/map/storage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index 9c960f6d1..abc0a56e9 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -134,6 +134,8 @@ int storage_additem(struct map_session_data *sd,struct storage *stor,struct item
nullpo_retr(1, stor);
nullpo_retr(1, item_data);
+ stor->dirty = 1;
+
if(item_data->nameid <= 0 || amount <= 0)
return 1;
nullpo_retr(1, data = itemdb_search(item_data->nameid));
@@ -172,7 +174,6 @@ int storage_additem(struct map_session_data *sd,struct storage *stor,struct item
return 1;
}
- stor->dirty = 1;
return 0;
}
/*==========================================