diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-04-01 15:41:03 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-04-01 15:41:03 +0200 |
commit | acedc5713df59989b8624770a1fbd9a75d1a0c85 (patch) | |
tree | 68cf8bcf8c6fe8dd992fba76106344840d668829 /src/map | |
parent | 044fa30eff1f86880367391ab91e0539de684446 (diff) | |
download | hercules-acedc5713df59989b8624770a1fbd9a75d1a0c85.tar.gz hercules-acedc5713df59989b8624770a1fbd9a75d1a0c85.tar.bz2 hercules-acedc5713df59989b8624770a1fbd9a75d1a0c85.tar.xz hercules-acedc5713df59989b8624770a1fbd9a75d1a0c85.zip |
Add case for BL_SKILL to unit_cbl2ud() to not trigger assert-returning
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |