Skip to content

Commit

Permalink
Load objcurs when creating starting items
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills committed Feb 23, 2024
1 parent b433b7e commit da445fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3023,11 +3023,13 @@ void CreatePlrItems(Player &player)
}
}

InitCursor();
for (auto &itemChoice : loadout.items) {
_item_indexes itemData = gbIsHellfire && itemChoice.hellfire != _item_indexes::IDI_NONE ? itemChoice.hellfire : itemChoice.diablo;
if (itemData != _item_indexes::IDI_NONE)
CreateStartingItem(player, itemData);
}
FreeCursor();

if (loadout.gold > 0) {
Item &goldItem = player.InvList[player._pNumInv];
Expand Down

0 comments on commit da445fd

Please sign in to comment.