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:
HAO YAN
2022-03-18 01:20:17 +08:00
committed by GitHub
parent 5193fd6c92
commit 00be4ee9ca
3 changed files with 9 additions and 10 deletions

View File

@@ -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;
}