summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-24 20:41:39 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-24 20:41:39 +0000
commit381ebf6a8da1e8d0085b4fdb92d0dd9bf811b2aa (patch)
tree9a1e7f9ae8968430ae5e40012fce35e48ecbd02f /src
parent43494a3834638f15f4acb78b45ad3cd91182a365 (diff)
downloadhercules-381ebf6a8da1e8d0085b4fdb92d0dd9bf811b2aa.tar.gz
hercules-381ebf6a8da1e8d0085b4fdb92d0dd9bf811b2aa.tar.bz2
hercules-381ebf6a8da1e8d0085b4fdb92d0dd9bf811b2aa.tar.xz
hercules-381ebf6a8da1e8d0085b4fdb92d0dd9bf811b2aa.zip
Fixed crash when attacking while having a bBreakArmorRate item equipped (typo in r13800) (bugreport:3121).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13810 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index fda276c5b..e6e81143f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -946,7 +946,7 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int
rate = 0;
if( sd )
rate += sd->break_armor_rate;
- if( rate )
+ if( sc && sc->data[SC_MELTDOWN] )
rate += sc->data[SC_MELTDOWN]->val3;
if( rate )
skill_break_equip(bl, EQP_ARMOR, rate, BCT_ENEMY);