summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-03 21:04:17 -0300
committershennetsind <ind@henn.et>2013-07-03 21:04:17 -0300
commitcda25f5c978329496cd015d60e97df4102e09557 (patch)
treecf21440d84510ad0c2cded6bab197870df33bd04 /src/map/skill.c
parentbbb86330a89e5d7fde2c68076f5970265bb2d9ae (diff)
downloadhercules-cda25f5c978329496cd015d60e97df4102e09557.tar.gz
hercules-cda25f5c978329496cd015d60e97df4102e09557.tar.bz2
hercules-cda25f5c978329496cd015d60e97df4102e09557.tar.xz
hercules-cda25f5c978329496cd015d60e97df4102e09557.zip
Fixed Bug #7461
Special Thanks to Igniz. http://hercules.ws/board/tracker/issue-7461-crash-on-clones-canto-candidus/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index dc89f3170..4763b5667 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -7892,8 +7892,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
case AB_CLEMENTIA:
case AB_CANTO:
{
- int bless_lv = pc->checkskill(sd,AL_BLESSING) + (sd->status.job_level / 10);
- int agi_lv = pc->checkskill(sd,AL_INCAGI) + (sd->status.job_level / 10);
+ int bless_lv = sd ? ( pc->checkskill(sd,AL_BLESSING) + (sd->status.job_level / 10) ) : 10;
+ int agi_lv = sd ? ( pc->checkskill(sd,AL_INCAGI) + (sd->status.job_level / 10) ) : 10;
if( sd == NULL || sd->status.party_id == 0 || flag&1 )
clif->skill_nodamage(bl, bl, skill_id, skill_lv, sc_start(bl,type,100,
(skill_id == AB_CLEMENTIA)? bless_lv : (skill_id == AB_CANTO)? agi_lv : skill_lv, skill->get_time(skill_id,skill_lv)));