This commit is contained in:
Janis
2023-02-22 13:50:33 +01:00
parent 13902bc589
commit a2e4459b5c
4 changed files with 6 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ public class Inventory : MonoBehaviour
{
InventoryItem invItem = items[i];
Debug.Log(invItem);
if (invItem.item == null)
if (invItem?.item == null)
{
int toAdd = Mathf.Min(item.maxStackSize, remainingCount);