- Small change in pc_additem that could be fixing the current bug with it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6660 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
5746260499
commit
1f864cfee8
@ -4,6 +4,8 @@ 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.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
|
|
||||||
2006/05/19
|
2006/05/19
|
||||||
|
* Small change in pc_additem that could be fixing the current bug with new
|
||||||
|
items not getting added. [Skotlex]
|
||||||
* Fixed loginlog definition in main.sql, thanks to Tempesta [Skotlex]
|
* Fixed loginlog definition in main.sql, thanks to Tempesta [Skotlex]
|
||||||
* Likely fixed the mob-skill random picking behaviour causing infinite
|
* Likely fixed the mob-skill random picking behaviour causing infinite
|
||||||
loops sometimes. [Skotlex]
|
loops sometimes. [Skotlex]
|
||||||
|
@ -2423,7 +2423,7 @@ int pc_additem(struct map_session_data *sd,struct item *item_data,int amount)
|
|||||||
// clear equips field first, just in case
|
// clear equips field first, just in case
|
||||||
if (item_data->equip)
|
if (item_data->equip)
|
||||||
item_data->equip = 0;
|
item_data->equip = 0;
|
||||||
memcpy(&sd->status.inventory[i], item_data, sizeof(item_data));
|
memcpy(&sd->status.inventory[i], item_data, sizeof(sd->status.inventory[0]));
|
||||||
sd->status.inventory[i].amount = amount;
|
sd->status.inventory[i].amount = amount;
|
||||||
sd->inventory_data[i] = data;
|
sd->inventory_data[i] = data;
|
||||||
clif_additem(sd,i,amount,0);
|
clif_additem(sd,i,amount,0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user