From 68f0fee76a73612263984da5d9de1e32b7ffe7da Mon Sep 17 00:00:00 2001 From: Haru Date: Wed, 17 Dec 2014 02:09:33 +0100 Subject: Corrected a trivial null pointer case detected by Xcode Signed-off-by: Haru --- src/map/clif.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index 3515bb806..eff41422c 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17749,7 +17749,10 @@ void clif_parse_CashShopReqTab(int fd, struct map_session_data *sd) { void clif_maptypeproperty2(struct block_list *bl,enum send_target t) { #if PACKETVER >= 20121010 struct packet_maptypeproperty2 p; - struct map_session_data *sd = BL_CAST(BL_PC, bl); + struct map_session_data *sd = NULL; + nullpo_retv(bl); + + sd = BL_CAST(BL_PC, bl); p.PacketType = maptypeproperty2Type; p.type = 0x28; -- cgit v1.2.3-70-g09d2