summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-19 08:13:37 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-19 08:13:37 +0000
commit4f1eaf958561c690b199953f0f3d14bee5c6b7f7 (patch)
tree307c84bc856c20ba188a615f9eedee5761f3f54d /src/map/pc.c
parentccfcd256566afa04a502a8c0ae0151382610defc (diff)
downloadhercules-4f1eaf958561c690b199953f0f3d14bee5c6b7f7.tar.gz
hercules-4f1eaf958561c690b199953f0f3d14bee5c6b7f7.tar.bz2
hercules-4f1eaf958561c690b199953f0f3d14bee5c6b7f7.tar.xz
hercules-4f1eaf958561c690b199953f0f3d14bee5c6b7f7.zip
* Added getrefine()
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1253 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index d53a4302f..920784da3 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1584,10 +1584,10 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
sd->hp_gain_value += val;
break;
case SP_DAMAGE_WHEN_UNEQUIP:
- if(!sd->state.lr_flag && sd->current_item) {
+ if(!sd->state.lr_flag) {
int i;
for (i=0; i<11; i++) {
- if (sd->current_item->equip & equip_pos[i]) {
+ if (sd->inventory_data[current_equip_item_index]->equip & equip_pos[i]) {
sd->unequip_damage[i] += val;
break;
}