From 5fda4f0f65d3a239becb9f44df38a7cfad9a6160 Mon Sep 17 00:00:00 2001 From: Jey Date: Mon, 11 Sep 2017 03:04:28 +0200 Subject: [PATCH] Fixed potential map server crash. * Added a null pointer check * Thanks to @admkakaroto! --- 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 2e3210b301..42d19eef9a 100755 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -10830,7 +10830,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui clif_skill_fail(sd, skill_id, USESKILL_FAIL_TOTARGET, 0); break; } - if (tsc->count && tsc->data[type]) // Refresh the status only if it's already active. + if (tsc && tsc->count && tsc->data[type]) // Refresh the status only if it's already active. sc_start(src, bl, type, 100, skill_lv, skill_get_time(skill_id, skill_lv)); else { sc_start(src, bl, type, 100, skill_lv, skill_get_time(skill_id, skill_lv));