summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-07 01:25:27 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-07 01:25:27 +0000
commitb4ae63a63186b89d9b4012b1bc4e802ca37cb74e (patch)
treec587bb3164ba49cb15b031fd65434a3f807a4d34 /src/map
parent308641e05ba6e9939e587aef9644c579622cdc5b (diff)
downloadhercules-b4ae63a63186b89d9b4012b1bc4e802ca37cb74e.tar.gz
hercules-b4ae63a63186b89d9b4012b1bc4e802ca37cb74e.tar.bz2
hercules-b4ae63a63186b89d9b4012b1bc4e802ca37cb74e.tar.xz
hercules-b4ae63a63186b89d9b4012b1bc4e802ca37cb74e.zip
Fixing the 'equipping already equipped items' exploit (bugreport:3195).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13853 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index a25014707..b750c582f 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6760,7 +6760,7 @@ int pc_equipitem(struct map_session_data *sd,int n,int req_pos)
if(battle_config.battle_log)
ShowInfo("equip %d(%d) %x:%x\n",sd->status.inventory[n].nameid,n,id->equip,req_pos);
- if(!pc_isequip(sd,n) || !(pos&req_pos) || sd->status.inventory[n].attribute==1 ) { // [Valaris]
+ if(!pc_isequip(sd,n) || !(pos&req_pos) || sd->status.inventory[n].equip != 0 || sd->status.inventory[n].attribute==1 ) { // [Valaris]
clif_equipitemack(sd,n,0,0); // fail
return 0;
}