From 0b43e1e0eccd6ad8bdb595b82381905fa4621227 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 7 Jun 2009 01:25:27 +0000 Subject: [PATCH] Fixing the 'equipping already equipped items' exploit (bugreport:3195). git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13853 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/pc.c b/src/map/pc.c index a250147076..b750c582fe 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; }