diff options
author | GmOcean <hyperassassin@gmail.com> | 2014-12-04 12:52:35 -1000 |
---|---|---|
committer | GmOcean <hyperassassin@gmail.com> | 2014-12-04 12:52:35 -1000 |
commit | 1a12aeed2d165f06acddfdb0ae2c49e62b6530de (patch) | |
tree | 674b88b47704591d20a85374181703d2dda6affc /src/map/script.c | |
parent | 7a9133ed8fa1c20063324ad8fe2517e6b6470cc4 (diff) | |
download | hercules-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.
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 2 |
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); |