From 2b1dce1e4acf46941657cab6da008c774f52de7c Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 19 Apr 2016 15:26:36 +0200 Subject: 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 --- src/map/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/unit.c') 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); -- cgit v1.2.3-60-g2f50