summaryrefslogtreecommitdiff
path: root/src/map/pc_groups.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-06 17:36:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-06 17:36:33 +0300
commitd5199cee806fb9f18987dea0c3a20a2d381927ca (patch)
tree135f15dadc1c7964b3078fd8223771f94d1ed0e6 /src/map/pc_groups.c
parent756be9835054a3b2b8ebace388546fa15ffd4a92 (diff)
parente3eac134b1607cfe78331e298aaa20b260662571 (diff)
downloadhercules-d5199cee806fb9f18987dea0c3a20a2d381927ca.tar.gz
hercules-d5199cee806fb9f18987dea0c3a20a2d381927ca.tar.bz2
hercules-d5199cee806fb9f18987dea0c3a20a2d381927ca.tar.xz
hercules-d5199cee806fb9f18987dea0c3a20a2d381927ca.zip
Merge pull request #1034 from HerculesWS/bl_cast
Changed all TBL_* to the appropriate structs
Diffstat (limited to 'src/map/pc_groups.c')
-rw-r--r--src/map/pc_groups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc_groups.c b/src/map/pc_groups.c
index 675a8b62e..bd46b9616 100644
--- a/src/map/pc_groups.c
+++ b/src/map/pc_groups.c
@@ -508,7 +508,7 @@ void pc_groups_reload(void) {
/* refresh online users permissions */
iter = mapit_getallusers();
- for (sd = (TBL_PC*)mapit->first(iter); mapit->exists(iter); sd = (TBL_PC*)mapit->next(iter)) {
+ for (sd = BL_UCAST(BL_PC, mapit->first(iter)); mapit->exists(iter); sd = BL_UCAST(BL_PC, mapit->next(iter))) {
if (pc->set_group(sd, sd->group_id) != 0) {
ShowWarning("pc_groups_reload: %s (AID:%d) has unknown group id (%d)! kicking...\n",
sd->status.name, sd->status.account_id, pc_get_group_id(sd));