diff options
author | Andrei Karas <akaras@inbox.ru> | 2020-05-13 01:24:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2020-06-01 01:08:50 +0300 |
commit | 26f926c8b33bb7b501e2a291364b8c07a9a50ae6 (patch) | |
tree | a2a78bb10b06773b7a22917bd6f76d1efdf17975 /src/map | |
parent | bb21005b13f1a8741e60a65f973b3a115bea1ff1 (diff) | |
download | hercules-26f926c8b33bb7b501e2a291364b8c07a9a50ae6.tar.gz hercules-26f926c8b33bb7b501e2a291364b8c07a9a50ae6.tar.bz2 hercules-26f926c8b33bb7b501e2a291364b8c07a9a50ae6.tar.xz hercules-26f926c8b33bb7b501e2a291364b8c07a9a50ae6.zip |
Add missing vd checks into clif.c
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |