🚚 Rename 'ItemStruct' to 'Item'

This commit is contained in:
Juliano Leal Goncalves 2021-08-30 01:15:37 -03:00 committed by Anders Jenbo
commit bb2dfdfb73
24 changed files with 202 additions and 202 deletions

View file

@ -7,7 +7,7 @@
using namespace devilution;
/* Set up a given item as a spell scroll, allowing for its usage. */
void set_up_scroll(ItemStruct &item, spell_id spell)
void set_up_scroll(Item &item, spell_id spell)
{
pcurs = CURSOR_HAND;
leveltype = DTYPE_CATACOMBS;
@ -21,7 +21,7 @@ void set_up_scroll(ItemStruct &item, spell_id spell)
void clear_inventory()
{
for (int i = 0; i < NUM_INV_GRID_ELEM; i++) {
memset(&Players[MyPlayerId].InvList[i], 0, sizeof(ItemStruct));
memset(&Players[MyPlayerId].InvList[i], 0, sizeof(Item));
Players[MyPlayerId].InvGrid[i] = 0;
}
Players[MyPlayerId]._pNumInv = 0;