🚚 Rename 'ItemStruct' to 'Item'
This commit is contained in:
parent
a207644d88
commit
bb2dfdfb73
24 changed files with 202 additions and 202 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue