diff options
author | Haru <haru@dotalux.com> | 2015-09-18 17:48:20 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-09-18 17:48:20 +0200 |
commit | 58e3177021890543faf6363fcb3326617100571d (patch) | |
tree | 15b14edc6937bcb50d5ff98893cc48de02aca99b /src/map/itemdb.c | |
parent | 442a306a60d4529f5cae70c0a659b4bc31d2f07b (diff) | |
download | hercules-58e3177021890543faf6363fcb3326617100571d.tar.gz hercules-58e3177021890543faf6363fcb3326617100571d.tar.bz2 hercules-58e3177021890543faf6363fcb3326617100571d.tar.xz hercules-58e3177021890543faf6363fcb3326617100571d.zip |
Clarified the intent of several assignments inside conditional expressions
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 7f5c2224c..dbade4c10 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -990,7 +990,7 @@ void itemdb_read_packages(void) { c = 0; while( (it = libconfig->setting_get_elem(itg,c++)) ) { int rval = 0; - if( ( t = libconfig->setting_get_member(it, "Random")) && ( rval = libconfig->setting_get_int(t) ) > 0 ) { + if ((t = libconfig->setting_get_member(it, "Random")) != NULL && (rval = libconfig->setting_get_int(t)) > 0) { rgroups[i - 1][rval - 1] += 1; } } |