From 3d37243e8d397bb73f058692dbd90bebb7201eab Mon Sep 17 00:00:00 2001 From: skyleo Date: Sat, 8 Feb 2020 01:03:10 +0100 Subject: Fix Homunculi being partially vaporized. Vanilmirth for example would get incompletely vaporized when using HVAN_EXPLOSION, if the owner died due to it, and then it would be killed at the end of it. This produced a bug which made it not ressurectable but callable, once it was called it would be dead though and you'd be unable to control it, requiring you to ressurect it after that. This bug got introduced by 0eca88efc69becc591428fbb6b9fddd9237afd3d . --- src/map/homunculus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/homunculus.c b/src/map/homunculus.c index 0b501a93f..1a7e1d77a 100644 --- a/src/map/homunculus.c +++ b/src/map/homunculus.c @@ -179,7 +179,7 @@ static int homunculus_vaporize(struct map_session_data *sd, enum homun_state sta nullpo_ret(sd); hd = sd->hd; - if (!hd || hd->homunculus.vaporize != HOM_ST_ACTIVE) + if (hd == NULL || hd->bl.prev == NULL || hd->homunculus.vaporize != HOM_ST_ACTIVE) return 0; if (status->isdead(&hd->bl)) -- cgit v1.2.3-60-g2f50