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:
parent
4213c1bc95
commit
78f511f920
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user