summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-04-01 12:03:21 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-04-01 12:26:58 +0200
commit044fa30eff1f86880367391ab91e0539de684446 (patch)
tree82790d5ad690922475e9bd8622b2cd957b3b72e3 /src/map/unit.c
parentdd7f653b00239299cdecb7ca826c21e5957863da (diff)
downloadhercules-044fa30eff1f86880367391ab91e0539de684446.tar.gz
hercules-044fa30eff1f86880367391ab91e0539de684446.tar.bz2
hercules-044fa30eff1f86880367391ab91e0539de684446.tar.xz
hercules-044fa30eff1f86880367391ab91e0539de684446.zip
Add case for BL_SKILL to unit_bl2ud() to not trigger assert-returning
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 2 insertions, 0 deletions
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);
}