From 78f511f920db49a30aeddcdc4e8b3a12833a4a47 Mon Sep 17 00:00:00 2001 From: Inkfish Date: Tue, 30 Mar 2010 13:32:05 +0000 Subject: [PATCH] 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 --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/skill.c b/src/map/skill.c index 3c3ea38027..b23a960076 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) {