diff options
author | Haru <haru@dotalux.com> | 2016-07-14 03:28:53 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-07-14 03:28:53 +0200 |
commit | 7bcb379c83327331bda05a23000dc0a6bbbefa48 (patch) | |
tree | 5c0911e81606e0c41008a7f8e0b990114ae24051 /src/map/chat.c | |
parent | 968e3cddbd3394607ae34f56ba8ee12d78bad1a5 (diff) | |
download | hercules-7bcb379c83327331bda05a23000dc0a6bbbefa48.tar.gz hercules-7bcb379c83327331bda05a23000dc0a6bbbefa48.tar.bz2 hercules-7bcb379c83327331bda05a23000dc0a6bbbefa48.tar.xz hercules-7bcb379c83327331bda05a23000dc0a6bbbefa48.zip |
Changed mmo_charstatus::base_level and mmo_charstatus::job_level to int
Fixes several -Wsign-compare issues
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/chat.c')
-rw-r--r-- | src/map/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chat.c b/src/map/chat.c index df48e1f2c..4429d125c 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -156,8 +156,8 @@ bool chat_joinchat(struct map_session_data* sd, int chatid, const char* pass) { return false; } - if( sd->status.base_level < cd->minLvl || sd->status.base_level > cd->maxLvl ) { - if(sd->status.base_level < cd->minLvl) + if (sd->status.base_level < (int)cd->minLvl || sd->status.base_level > (int)cd->maxLvl) { // FIXME + if(sd->status.base_level < (int)cd->minLvl) // FIXME clif->joinchatfail(sd,5); // too low level else clif->joinchatfail(sd,6); // too high level |