Fixed the first item in the inventory is unbreakable

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14274 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Inkfish 2010-03-30 13:32:05 +00:00
parent 4213c1bc95
commit 78f511f920

View File

@ -1392,7 +1392,7 @@ int skill_break_equip (struct block_list *bl, unsigned short where, int rate, in
if (sd) { if (sd) {
for (i = 0; i < EQI_MAX; i++) { for (i = 0; i < EQI_MAX; i++) {
j = sd->equip_index[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; continue;
flag = 0; flag = 0;
switch(i) { switch(i) {