From 26f926c8b33bb7b501e2a291364b8c07a9a50ae6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 May 2020 01:24:35 +0300 Subject: Add missing vd checks into clif.c --- src/map/clif.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/map/clif.c b/src/map/clif.c index 12e58f8ec..836259483 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1030,6 +1030,7 @@ static void clif_set_unit_idle2(struct block_list *bl, struct map_session_data * int g_id = status->get_guild_id(bl); nullpo_retv(bl); + nullpo_retv(vd); sd = BL_CAST(BL_PC, bl); p.PacketType = idle_unit2Type; @@ -1086,6 +1087,7 @@ static void clif_set_unit_idle(struct block_list *bl, struct map_session_data *t int g_id = status->get_guild_id(bl); nullpo_retv(bl); + nullpo_retv(vd); #if PACKETVER < 20091103 if (!pc->db_checkid(vd->class)) { @@ -1196,6 +1198,7 @@ static void clif_spawn_unit2(struct block_list *bl, enum send_target target) int g_id = status->get_guild_id(bl); nullpo_retv(bl); + nullpo_retv(vd); sd = BL_CAST(BL_PC, bl); p.PacketType = spawn_unit2Type; @@ -1243,6 +1246,7 @@ static void clif_spawn_unit(struct block_list *bl, enum send_target target) int g_id = status->get_guild_id(bl); nullpo_retv(bl); + nullpo_retv(vd); #if PACKETVER < 20091103 if (!pc->db_checkid(vd->class)) { @@ -1356,6 +1360,7 @@ static void clif_set_unit_walking(struct block_list *bl, struct map_session_data nullpo_retv(bl); nullpo_retv(ud); + nullpo_retv(vd); sd = BL_CAST(BL_PC, bl); -- cgit v1.2.3-60-g2f50