diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-28 05:29:01 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-28 05:29:01 +0000 |
commit | b76a55cb71b2db467b3b8d0559802671d88f0837 (patch) | |
tree | fbd7ad16793212166c71a25843b6c6cd06daaedb /src | |
parent | 3b4455299f3c5c0f6d6032c21c15f2e011639749 (diff) | |
download | hercules-b76a55cb71b2db467b3b8d0559802671d88f0837.tar.gz hercules-b76a55cb71b2db467b3b8d0559802671d88f0837.tar.bz2 hercules-b76a55cb71b2db467b3b8d0559802671d88f0837.tar.xz hercules-b76a55cb71b2db467b3b8d0559802671d88f0837.zip |
- Fixed unable to store n items into storage unless n was the total amount of items you had.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6794 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/storage.c b/src/map/storage.c index 0184d2978..a0c82e839 100644 --- a/src/map/storage.c +++ b/src/map/storage.c @@ -242,7 +242,7 @@ int storage_storageadd(struct map_session_data *sd,int index,int amount) if(sd->status.inventory[index].nameid <= 0)
return 0; //No item on that spot
- if(amount < 1 || amount < sd->status.inventory[index].amount)
+ if(amount < 1 || amount > sd->status.inventory[index].amount)
return 0;
// log_tostorage(sd, index, 0);
|