Fixed potential map server crash.
* Added a null pointer check * Thanks to @admkakaroto!
This commit is contained in:
parent
de441d6d2c
commit
5fda4f0f65
@ -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);
|
clif_skill_fail(sd, skill_id, USESKILL_FAIL_TOTARGET, 0);
|
||||||
break;
|
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));
|
sc_start(src, bl, type, 100, skill_lv, skill_get_time(skill_id, skill_lv));
|
||||||
else {
|
else {
|
||||||
sc_start(src, bl, type, 100, skill_lv, skill_get_time(skill_id, skill_lv));
|
sc_start(src, bl, type, 100, skill_lv, skill_get_time(skill_id, skill_lv));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user