From 78dd9d3e2c08e1291c3245f9aa25a4c10d7632e4 Mon Sep 17 00:00:00 2001 From: greenboxal2 Date: Sun, 6 May 2012 21:58:15 +0000 Subject: Fixed bugreport:5698 Missing null pointer check on NC_MAGNETICFIELD. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16083 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/skill.c b/src/map/skill.c index eed7dd1c6..7c1d53f0b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -7796,7 +7796,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in { map_foreachinrange(skill_area_sub,src,skill_get_splash(skillid,skilllv),splash_target(src),src,skillid,skilllv,tick,flag|BCT_ENEMY|SD_SPLASH|1,skill_castend_damage_id);; clif_skill_damage(src,src,tick,status_get_amotion(src),0,-30000,1,skillid,skilllv,6); - pc_overheat(sd,1); + if (sd) pc_overheat(sd,1); } clif_skill_nodamage(src,src,skillid,skilllv,i); break; -- cgit v1.2.3-70-g09d2