From 044fa30eff1f86880367391ab91e0539de684446 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Wed, 1 Apr 2020 12:03:21 +0200 Subject: Add case for BL_SKILL to unit_bl2ud() to not trigger assert-returning --- src/map/unit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/map/unit.c b/src/map/unit.c index a879a125f..ff121af3d 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -96,6 +96,8 @@ static struct unit_data *unit_bl2ud(struct block_list *bl) return &BL_UCAST(BL_MER, bl)->ud; case BL_ELEM: return &BL_UCAST(BL_ELEM, bl)->ud; + case BL_SKILL: // No assertion to not spam the server console when attacking a skill type unit such as Ice Wall. + return NULL; default: Assert_retr(NULL, false); } -- cgit v1.2.3-70-g09d2 From acedc5713df59989b8624770a1fbd9a75d1a0c85 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Wed, 1 Apr 2020 15:41:03 +0200 Subject: Add case for BL_SKILL to unit_cbl2ud() to not trigger assert-returning --- src/map/unit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/map/unit.c b/src/map/unit.c index ff121af3d..2f50c5664 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -130,6 +130,8 @@ static const struct unit_data *unit_cbl2ud(const struct block_list *bl) return &BL_UCCAST(BL_MER, bl)->ud; case BL_ELEM: return &BL_UCCAST(BL_ELEM, bl)->ud; + case BL_SKILL: // No assertion to not spam the server console when attacking a skill type unit such as Ice Wall. + return NULL; default: Assert_retr(NULL, false); } -- cgit v1.2.3-70-g09d2