summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-22 19:14:42 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-22 19:14:42 +0000
commit1f9c70b90fa41a531dd1dfbd386c3b576d770e97 (patch)
treed8e3f198e67500d1a7bbf56e4825e34adc1fe692 /src/map/chrif.c
parente828c8642a637a3e3f63450b75ebc93f2bd4bce4 (diff)
downloadhercules-1f9c70b90fa41a531dd1dfbd386c3b576d770e97.tar.gz
hercules-1f9c70b90fa41a531dd1dfbd386c3b576d770e97.tar.bz2
hercules-1f9c70b90fa41a531dd1dfbd386c3b576d770e97.tar.xz
hercules-1f9c70b90fa41a531dd1dfbd386c3b576d770e97.zip
- Removed the include of features.h from the console.c plugin. It is apparently not needed (and it was preventing compilation on FreeBSD)
- Fixed bug which totally broke item group bonuses. - Added warnings when setting a pvp/gvg flag removes the other flags on the same map (gvg and pvp can't coexist on the same map) - Optimized the unequip loop when changing sex. - Removed the check that prevented you from casting soul-collect when you already have 5 spirits. - Corrected Magic Rod so it doesn't displays any skill-use animation until it triggers. - Debuff on logout&2 is again set to default, instead of removing food bonuses now it removes Maximize Power, Maximum Overthrust and Steel Body. - Corrected Steel Body's icon (it actually belongs to AutoBerserk) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10317 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 2af51c20d..d163dab77 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -821,9 +821,9 @@ int chrif_changedsex(int fd)
sd->status.sex = !sd->status.sex;
// to avoid any problem with equipment and invalid sex, equipment is unequiped.
- for (i = 0; i < MAX_INVENTORY; i++) {
- if (sd->status.inventory[i].nameid && sd->status.inventory[i].equip)
- pc_unequipitem((struct map_session_data*)sd, i, 2);
+ for (i = 0; i < EQI_MAX; i++) {
+ if (sd->equip_index[i] >= 0)
+ pc_unequipitem((struct map_session_data*)sd, sd->equip_index[i], 2);
}
// reset skill of some job
if ((sd->class_&MAPID_UPPERMASK) == MAPID_BARDDANCER) {