diff options
author | Haru <haru@dotalux.com> | 2016-04-19 15:26:36 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-04-23 18:42:57 +0200 |
commit | 2b1dce1e4acf46941657cab6da008c774f52de7c (patch) | |
tree | 008455c1ef1f50c4b2eb8e26f18262f26d9dc5d7 /src/map/pc.c | |
parent | 3af03d2a2e8f2054f9a44e272505b1a74d6bdaf6 (diff) | |
download | hercules-2b1dce1e4acf46941657cab6da008c774f52de7c.tar.gz hercules-2b1dce1e4acf46941657cab6da008c774f52de7c.tar.bz2 hercules-2b1dce1e4acf46941657cab6da008c774f52de7c.tar.xz hercules-2b1dce1e4acf46941657cab6da008c774f52de7c.zip |
Changed map_session_data::chatID to int (and renamed to chat_id)
- Chat IDs are signed integers.
- Resolves various warnings, depending on the compiler settings.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 8fe9ddd6e..1c7c72944 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1864,8 +1864,8 @@ int pc_disguise(struct map_session_data *sd, int class_) { clif->cartlist(sd); clif->updatestatus(sd,SP_CARTINFO); } - if (sd->chatID) { - struct chat_data *cd = map->id2cd(sd->chatID); + if (sd->chat_id != 0) { + struct chat_data *cd = map->id2cd(sd->chat_id); if (cd != NULL) clif->dispchat(cd,0); |