Updated InventoryComponent
Added comment
This commit is contained in:
parent
57b532c256
commit
5dce4dc603
BIN
Content/Blueprints/Inventory_UI/WBP_PlayerInventory.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Inventory_UI/WBP_PlayerInventory.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Levels/MerchantPrototype.umap
(Stored with Git LFS)
BIN
Content/Levels/MerchantPrototype.umap
(Stored with Git LFS)
Binary file not shown.
@ -46,6 +46,7 @@ bool UInventoryComponent::AddItem(class UBaseItem* BaseItem)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// remove only gets called once on the same item
|
||||||
bool UInventoryComponent::Remove(class UBaseItem* BaseItem)
|
bool UInventoryComponent::Remove(class UBaseItem* BaseItem)
|
||||||
{
|
{
|
||||||
if(BaseItem)
|
if(BaseItem)
|
||||||
|
Loading…
Reference in New Issue
Block a user