diff options
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r-- | src/map/charcommand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/charcommand.c b/src/map/charcommand.c index ed18f27a4..9b700dc47 100644 --- a/src/map/charcommand.c +++ b/src/map/charcommand.c @@ -700,7 +700,7 @@ int charcommand_stats_all(const int fd, struct map_session_data* sd, const char* count = 0; for(i = 0; i < fd_max; i++) { - if (session[i] && (pl_sd = session[i]->session_data) && pl_sd->state.auth) { + if (session[i] && (pl_sd = (struct map_session_data *) session[i]->session_data) && pl_sd->state.auth) { if (pc_isGM(pl_sd) > 0) sprintf(gmlevel, "| GM Lvl: %d", pc_isGM(pl_sd)); @@ -1088,7 +1088,7 @@ int charcommand_item( } } else if(/* from jA's @giveitem */strcmpi(character,"all")==0 || strcmpi(character,"everyone")==0){ for (i = 0; i < fd_max; i++) { - if (session[i] && (pl_sd = session[i]->session_data)){ + if (session[i] && (pl_sd = (struct map_session_data *) session[i]->session_data)){ charcommand_giveitem_sub(pl_sd,item_data,number); snprintf(tmp_output, sizeof(tmp_output), "You got %s %d.", item_name,number); clif_displaymessage(pl_sd->fd, tmp_output); |