From d4d37e6a8675a805c574b2bfbff46b2114141f47 Mon Sep 17 00:00:00 2001 From: Haru Date: Wed, 15 Jan 2014 04:18:31 +0100 Subject: Fixed mapserver error when display_status_timers is disabled - Fixes message "status_type2relevant_bl_types: Unsupported type -1" displayed when the display_status_timers battle flag is disabled. - Corrects return value for status_type2relevant_bl_types in case of unsupported type. - Special thanks to Ind Signed-off-by: Haru --- src/map/clif.c | 4 ++-- src/map/status.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/clif.c b/src/map/clif.c index b51651b90..d13cea145 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5492,10 +5492,10 @@ void clif_status_change_notick(struct block_list *bl,int type,int flag,int tick, nullpo_retv(bl); - if (!(status->type2relevant_bl_types(type)&bl->type)) // only send status changes that actually matter to the client + if (type == SI_BLANK) //It shows nothing on the client... return; - if (type == SI_BLANK) //It shows nothing on the client... + if (!(status->type2relevant_bl_types(type)&bl->type)) // only send status changes that actually matter to the client return; sd = BL_CAST(BL_PC, bl); diff --git a/src/map/status.c b/src/map/status.c index 1f7d81ccf..782f31780 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -96,7 +96,7 @@ int status_type2relevant_bl_types(int type) { if( type < 0 || type >= SI_MAX ) { ShowError("status_type2relevant_bl_types: Unsupported type %d\n", type); - return SI_BLANK; + return BL_NUL; } return status->RelevantBLTypes[type]; -- cgit v1.2.3-60-g2f50