summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-07-28 04:09:30 +0100
committerAsheraf <acheraf1998@gmail.com>2018-07-28 04:09:30 +0100
commitf4eb94cb46c998a978385a0ff18b6d53e9100f68 (patch)
treef42b3bb5d3f19f653c34fb6b8bf9901373d64da7 /src
parentfae8040ad22885b1d1215daa013f3db26f5ce60d (diff)
downloadhercules-f4eb94cb46c998a978385a0ff18b6d53e9100f68.tar.gz
hercules-f4eb94cb46c998a978385a0ff18b6d53e9100f68.tar.bz2
hercules-f4eb94cb46c998a978385a0ff18b6d53e9100f68.tar.xz
hercules-f4eb94cb46c998a978385a0ff18b6d53e9100f68.zip
correct sell item achievement being validated after item is deleted
Diffstat (limited to 'src')
-rw-r--r--src/map/npc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 3a00b38ea..f80f8443a 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2272,10 +2272,11 @@ static int npc_selllist(struct map_session_data *sd, struct itemlist *item_list)
}
}
- pc->delitem(sd, idx, entry->amount, 0, DELITEM_SOLD, LOG_TYPE_NPC);
-
// Achievements [Smokexyz/Hercules]
achievement->validate_item_sell(sd, sd->status.inventory[idx].nameid, entry->amount);
+
+ pc->delitem(sd, idx, entry->amount, 0, DELITEM_SOLD, LOG_TYPE_NPC);
+
}
if (z + sd->status.zeny > MAX_ZENY && nd->master_nd == NULL)