summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorIbrahem Hossam <hemagx2@gmail.com>2016-04-24 13:13:19 +0200
committerIbrahem Hossam <hemagx2@gmail.com>2016-04-24 13:13:19 +0200
commit31e27a130676e3e416b583bb947f9dd87efdce81 (patch)
treef91422fa8b0ecd93ccb15720bc15a9b9b839cfd2 /src/map/unit.c
parent3ccc681a4bebd5b91b96c1c7059fdec91f2b5d16 (diff)
parent9fdb4567ab8af97004d7c6dcd35f27f788b0bb15 (diff)
downloadhercules-31e27a130676e3e416b583bb947f9dd87efdce81.tar.gz
hercules-31e27a130676e3e416b583bb947f9dd87efdce81.tar.bz2
hercules-31e27a130676e3e416b583bb947f9dd87efdce81.tar.xz
hercules-31e27a130676e3e416b583bb947f9dd87efdce81.zip
Merge pull request #1264 from HerculesWS/vs2015
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);