- Fixed unable to store n items into storage unless n was the total amount of items you had.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6794 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
bb1b0409a1
commit
2466911af0
@ -4,9 +4,11 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
|
||||
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||
|
||||
2006/05/28
|
||||
- Suppressed compilation warnings (unsigned and signed mismatches) [Lance]
|
||||
* Fixed unable to store n items into storage unless n was the total amount
|
||||
of items you had. [Skotlex]
|
||||
* Suppressed compilation warnings (unsigned and signed mismatches) [Lance]
|
||||
2006/05/27
|
||||
- Added structure status_data which holds status-related information (str,
|
||||
* Added structure status_data which holds status-related information (str,
|
||||
agi, etc, speed, amotion, adelay, dmotion, weapon-damage, race, size, etc)
|
||||
and weapon_atk structure with the weapon specific info (atk, atk2, element)
|
||||
to be used by all combat structures (TODO: Homun needs to be updated to use
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user