summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-28 22:08:54 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-30 02:32:10 +0300
commit7c21376f8dea2b438cb9470f74acc157a1929f06 (patch)
tree396829d37d642103dbd98e39b00bed7b8e875461 /src/map/pc.c
parent48064104f599a2dfa57440a1fda861c27bd55401 (diff)
downloadhercules-7c21376f8dea2b438cb9470f74acc157a1929f06.tar.gz
hercules-7c21376f8dea2b438cb9470f74acc157a1929f06.tar.bz2
hercules-7c21376f8dea2b438cb9470f74acc157a1929f06.tar.xz
hercules-7c21376f8dea2b438cb9470f74acc157a1929f06.zip
Use item attribute as flags varible. Now only ATTR_BROKEN flag exists.
Diffstat (limited to 'src/map/pc.c')
-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 460f44f4a..0d851231d 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -9653,7 +9653,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, (unsigned int)(id ? id->equip : 0), (unsigned int)req_pos);
- if(!pc->isequip(sd,n) || !(pos&req_pos) || sd->status.inventory[n].equip != 0 || 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 & ATTR_BROKEN) != 0 ) { // [Valaris]
// FIXME: pc->isequip: equip level failure uses 2 instead of 0
clif->equipitemack(sd,n,0,EIA_FAIL); // fail
return 0;