summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authormc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-22 21:25:28 +0000
committermc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-22 21:25:28 +0000
commit1c98baf3ab95a8312385e19029d2c9abf352f78a (patch)
tree717184528d1ba54ba969c556edd514eb2acce3b2 /src/map/script.c
parent73bb1f7559cd9956deb81fbd6fa93f6155102322 (diff)
downloadhercules-1c98baf3ab95a8312385e19029d2c9abf352f78a.tar.gz
hercules-1c98baf3ab95a8312385e19029d2c9abf352f78a.tar.bz2
hercules-1c98baf3ab95a8312385e19029d2c9abf352f78a.tar.xz
hercules-1c98baf3ab95a8312385e19029d2c9abf352f78a.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@331 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 0f76d4ec7..f198d42fe 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -2916,12 +2916,13 @@ int buildin_getequipisenableref(struct script_state *st)
num=conv_num(st,& (st->stack->stack_data[st->start+2]));
sd=script_rid2sd(st);
i=pc_checkequip(sd,equip[num-1]);
- if(i >= 0 && num<7 && sd->inventory_data[i] && (num!=1 || sd->inventory_data[i]->def > 1
+ if(i >= 0 && num<7 && sd->inventory_data[i] && (num!=1
+ || sd->inventory_data[i]->def > 1
|| (sd->inventory_data[i]->def==1 && sd->inventory_data[i]->equip_script==NULL)
- || (sd->inventory_data[i]->def<=0 && sd->inventory_data[i]->equip_script!=NULL))
- ){
+ || (sd->inventory_data[i]->def<=0 && sd->inventory_data[i]->equip_script!=NULL)))
+ {
push_val(st->stack,C_INT,1);
- }else{
+ } else {
push_val(st->stack,C_INT,0);
}