diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-03-30 13:32:05 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-03-30 13:32:05 +0000 |
commit | 0a440b692c7b0d0a22ed5b5d6920b6d5e960cde6 (patch) | |
tree | 5043093653a5e8698c93fe1e9eb80481f8006f2d /src | |
parent | 7fcfa0156e480cb0086ead412698dad5708e23a8 (diff) | |
download | hercules-0a440b692c7b0d0a22ed5b5d6920b6d5e960cde6.tar.gz hercules-0a440b692c7b0d0a22ed5b5d6920b6d5e960cde6.tar.bz2 hercules-0a440b692c7b0d0a22ed5b5d6920b6d5e960cde6.tar.xz hercules-0a440b692c7b0d0a22ed5b5d6920b6d5e960cde6.zip |
Fixed the first item in the inventory is unbreakable
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14274 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/skill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 3c3ea3802..b23a96007 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1392,7 +1392,7 @@ int skill_break_equip (struct block_list *bl, unsigned short where, int rate, in if (sd) { for (i = 0; i < EQI_MAX; i++) { j = sd->equip_index[i]; - if (j <= 0 || sd->status.inventory[j].attribute == 1 || !sd->inventory_data[j]) + if (j < 0 || sd->status.inventory[j].attribute == 1 || !sd->inventory_data[j]) continue; flag = 0; switch(i) { |