diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-29 16:46:19 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-29 16:46:19 +0000 |
commit | ec35f4b8bce178430219c484566a8dceea015221 (patch) | |
tree | 8ce50b81edebc57c308a00bccecbe066aa0fdcb0 /src/map/charcommand.c | |
parent | 51079611e59264b02fdbb4beb0d3675cc64618e6 (diff) | |
download | hercules-ec35f4b8bce178430219c484566a8dceea015221.tar.gz hercules-ec35f4b8bce178430219c484566a8dceea015221.tar.bz2 hercules-ec35f4b8bce178430219c484566a8dceea015221.tar.xz hercules-ec35f4b8bce178430219c484566a8dceea015221.zip |
More C/C++ Conformance fixes
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1334 54d463be-8e91-2dee-dedb-b68131a5f0ec
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); |