summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-10-17 23:51:50 +0300
committerAndrei Karas <akaras@inbox.ru>2018-10-22 01:42:43 +0300
commit152e4ee83f5637a25c1e7adb13d34cd10a4686d4 (patch)
tree907c84e17c28a6cd714d50a50b26310d81a80e34 /src/map/clif.c
parentade1ec3b4581c5671b588067ed6b86fecaf166b5 (diff)
downloadhercules-152e4ee83f5637a25c1e7adb13d34cd10a4686d4.tar.gz
hercules-152e4ee83f5637a25c1e7adb13d34cd10a4686d4.tar.bz2
hercules-152e4ee83f5637a25c1e7adb13d34cd10a4686d4.tar.xz
hercules-152e4ee83f5637a25c1e7adb13d34cd10a4686d4.zip
Add missing checks into camera packets.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 787a9db3b..ab1e88ffc 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -21936,6 +21936,7 @@ static void clif_parse_memorial_dungeon_command(int fd, struct map_session_data
static void clif_camera_showWindow(struct map_session_data *sd)
{
#if PACKETVER >= 20160525
+ nullpo_retv(sd);
struct PACKET_ZC_CAMERA_INFO p;
p.packetType = 0xa78;
p.action = 1;
@@ -21949,6 +21950,7 @@ static void clif_camera_showWindow(struct map_session_data *sd)
static void clif_camera_change(struct map_session_data *sd, float range, float rotation, float latitude, enum send_target target)
{
#if PACKETVER >= 20160525
+ nullpo_retv(sd);
struct PACKET_ZC_CAMERA_INFO p;
p.packetType = 0xa78;
p.action = 0;