ソースを参照

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
Inkfish 15 年 前
コミット
78f511f920
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/map/skill.c

+ 1 - 1
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) {