diff options
author | gepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-02-17 17:44:03 +0000 |
---|---|---|
committer | gepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-02-17 17:44:03 +0000 |
commit | 7b337e44d79cc427a0568d488de7831567409e50 (patch) | |
tree | 6084b19ae2e5f16a1e446a2548cddb4409581249 /src/map/pc_groups.c | |
parent | 21e32863d3f486d48bfee8c2b859fe811f671437 (diff) | |
download | hercules-7b337e44d79cc427a0568d488de7831567409e50.tar.gz hercules-7b337e44d79cc427a0568d488de7831567409e50.tar.bz2 hercules-7b337e44d79cc427a0568d488de7831567409e50.tar.xz hercules-7b337e44d79cc427a0568d488de7831567409e50.zip |
- Fixed group permissions not recognizing `false` setting (bug:5342).
- Reverted a line from `clif.c` that accidentaly got commited in r15586.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15597 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc_groups.c')
-rw-r--r-- | src/map/pc_groups.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc_groups.c b/src/map/pc_groups.c index 3ceb905ba..f62e16218 100644 --- a/src/map/pc_groups.c +++ b/src/map/pc_groups.c @@ -285,8 +285,11 @@ static void read_config(void) for (i = 0; i < count; ++i) { config_setting_t *perm = config_setting_get_elem(permissions, i); const char *name = config_setting_name(perm); + int val = config_setting_get_bool(perm); int j; + if (val == 0) // does not have this permission + continue; ARR_FIND(0, ARRAYLENGTH(permission_name), j, strcmp(permission_name[j].name, name) == 0); group_settings->e_permissions |= permission_name[j].permission; } |