summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-04-19 15:26:36 +0200
committerHaru <haru@dotalux.com>2016-04-23 18:42:57 +0200
commit2b1dce1e4acf46941657cab6da008c774f52de7c (patch)
tree008455c1ef1f50c4b2eb8e26f18262f26d9dc5d7 /src/map/unit.c
parent3af03d2a2e8f2054f9a44e272505b1a74d6bdaf6 (diff)
downloadhercules-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/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 9a698b77e..7e4d94e0b 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2433,7 +2433,7 @@ int unit_remove_map(struct block_list *bl, clr_type clrtype, const char* file, i
status_change_end(d_bl,SC__SHADOWFORM,INVALID_TIMER);
}
//Leave/reject all invitations.
- if(sd->chatID)
+ if (sd->chat_id != 0)
chat->leave(sd, false);
if(sd->trade_partner)
trade->cancel(sd);