Update Item Card slot count (#6301)
Should cover all card slots since these slots doesn't only store card anymore.
This commit is contained in:
@@ -1295,7 +1295,7 @@ bool pc_isequipped(struct map_session_data *sd, t_itemid nameid)
|
||||
continue;
|
||||
if( sd->inventory_data[index]->nameid == nameid )
|
||||
return true;
|
||||
for( j = 0; j < sd->inventory_data[index]->slots; j++ ){
|
||||
for( j = 0; j < MAX_SLOTS; j++ ){
|
||||
if( sd->inventory.u.items_inventory[index].card[j] == nameid )
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user