diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-11 02:49:44 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-11 02:49:44 +0000 |
commit | 770b5fc92df304517a37e701026b6f87f064a488 (patch) | |
tree | 3c6b792b228780b36b8fe18a31f46b77363c3425 /src/map/pc.c | |
parent | 69e30e1de648a546d1faf3d058dfb88e2181d413 (diff) | |
download | hercules-770b5fc92df304517a37e701026b6f87f064a488.tar.gz hercules-770b5fc92df304517a37e701026b6f87f064a488.tar.bz2 hercules-770b5fc92df304517a37e701026b6f87f064a488.tar.xz hercules-770b5fc92df304517a37e701026b6f87f064a488.zip |
- Corrected Frost Nova's splash range and Land Protector's cast range. Thanks to Haplo.
- Fixed Beast Strafing not having inf2 = 512 (to make it a target-auto-select skill)
- Fixed the duration of Land Protector, removed unusued time2 value from their entries in skill_cast_db. Thanks to Haplo.
- Corrected Warp Portal being unable to warp people who are standing on it on the moment it triggers.
- Fixed @follow stopping the moment you are warped.
- Fixed pc_additem messing with the equip field of the passed item data. Fixes the famous "equip stuff on your arrow slot" bug.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7607 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index d79ca7319..5ce2a8394 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2603,10 +2603,11 @@ int pc_additem(struct map_session_data *sd,struct item *item_data,int amount) if (i >= MAX_INVENTORY){ i = pc_search_inventory(sd,0); if(i<0) return 4; + memcpy(&sd->status.inventory[i], item_data, sizeof(sd->status.inventory[0])); // clear equips field first, just in case if (item_data->equip) - item_data->equip = 0; - memcpy(&sd->status.inventory[i], item_data, sizeof(sd->status.inventory[0])); + sd->status.inventory[i].equip = 0; + sd->status.inventory[i].amount = amount; sd->inventory_data[i] = data; clif_additem(sd,i,amount,0); |