diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-17 04:42:48 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-17 04:42:48 +0000 |
commit | 5a00db39c2eaf410292ae86d8b4f356ffa81e5dd (patch) | |
tree | 91e54ecc8c2e2fbde47af6fd2f38128ae81aeb43 /src/map/pc.c | |
parent | 8c22ebeeb13def8fa836756fe5ef6f95943068b9 (diff) | |
download | hercules-5a00db39c2eaf410292ae86d8b4f356ffa81e5dd.tar.gz hercules-5a00db39c2eaf410292ae86d8b4f356ffa81e5dd.tar.bz2 hercules-5a00db39c2eaf410292ae86d8b4f356ffa81e5dd.tar.xz hercules-5a00db39c2eaf410292ae86d8b4f356ffa81e5dd.zip |
more updates
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@590 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index d975deaf5..3c37f7ce1 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5408,7 +5408,7 @@ int pc_damage(struct block_list *src,struct map_session_data *sd,int damage) if (sd->sc_data) { if (sd->sc_data[SC_ENDURE].timer == -1 && sd->sc_data[SC_BERSERK].timer == -1 && !sd->special_state.infinite_endure) pc_stop_walking(sd,3); - else if(sd->sc_data[SC_ENDURE].timer != -1 && src->type==BL_MOB && (--sd->sc_data[SC_ENDURE].val2) <= 0) + else if(sd->sc_data[SC_ENDURE].timer != -1 && (src != NULL && src->type==BL_MOB) && (--sd->sc_data[SC_ENDURE].val2) <= 0) skill_status_change_end(&sd->bl, SC_ENDURE, -1); } else pc_stop_walking(sd,3); |