From a7c3d70ae42370b570bf25972089f2326ace6396 Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 14 Jul 2016 02:29:05 +0200 Subject: Changed pc->maxbaselv() and pc->maxjoblv() to return signed int and take const sd Removes some FIXME (and continues a chain reaction) Fixes some of the many -Wsign-compare warnings Signed-off-by: Haru --- src/map/pc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/pc.h') diff --git a/src/map/pc.h b/src/map/pc.h index 8b1c9a34d..f3b2c1ff6 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -909,8 +909,8 @@ END_ZEROED_BLOCK; /* End */ int (*follow) (struct map_session_data *sd, int target_id); // [MouseJstr] int (*stop_following) (struct map_session_data *sd); - unsigned int (*maxbaselv) (struct map_session_data *sd); - unsigned int (*maxjoblv) (struct map_session_data *sd); + int (*maxbaselv) (const struct map_session_data *sd); + int (*maxjoblv) (const struct map_session_data *sd); int (*checkbaselevelup) (struct map_session_data *sd); int (*checkjoblevelup) (struct map_session_data *sd); bool (*gainexp) (struct map_session_data *sd, struct block_list *src, unsigned int base_exp, unsigned int job_exp, bool is_quest); -- cgit v1.2.3-70-g09d2