summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGmOcean <hyperassassin@gmail.com>2014-12-04 12:52:35 -1000
committerGmOcean <hyperassassin@gmail.com>2014-12-04 12:52:35 -1000
commit1a12aeed2d165f06acddfdb0ae2c49e62b6530de (patch)
tree674b88b47704591d20a85374181703d2dda6affc
parent7a9133ed8fa1c20063324ad8fe2517e6b6470cc4 (diff)
downloadhercules-1a12aeed2d165f06acddfdb0ae2c49e62b6530de.tar.gz
hercules-1a12aeed2d165f06acddfdb0ae2c49e62b6530de.tar.bz2
hercules-1a12aeed2d165f06acddfdb0ae2c49e62b6530de.tar.xz
hercules-1a12aeed2d165f06acddfdb0ae2c49e62b6530de.zip
Added explicit parenthesis for *checkbound command, during the check for bound type as per suggested by Haruna.
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
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);