From 1a12aeed2d165f06acddfdb0ae2c49e62b6530de Mon Sep 17 00:00:00 2001 From: GmOcean Date: Thu, 4 Dec 2014 12:52:35 -1000 Subject: Added explicit parenthesis for *checkbound command, during the check for bound type as per suggested by Haruna. --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index d8a2e297f..3b1f1d4aa 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -18710,7 +18710,7 @@ BUILDIN(checkbound){ ( sd->status.inventory[i].card[1] == (script_hasdata(st,7)? (c2 = script_getnum(st,7)) : sd->status.inventory[i].card[1]) ) && ( sd->status.inventory[i].card[2] == (script_hasdata(st,8)? (c3 = script_getnum(st,8)) : sd->status.inventory[i].card[2]) ) && ( sd->status.inventory[i].card[3] == (script_hasdata(st,9)? (c4 = script_getnum(st,9)) : sd->status.inventory[i].card[3]) ) && - ( sd->status.inventory[i].bound > 0 && !bound_type || sd->status.inventory[i].bound == bound_type )) ); + ((sd->status.inventory[i].bound > 0 && !bound_type) || sd->status.inventory[i].bound == bound_type )) ); if( i < MAX_INVENTORY ){ script_pushint(st, sd->status.inventory[i].bound); -- cgit v1.2.3-60-g2f50