DavidSouzaLD / InventoryTetris-Unity

This is a Tetris/Grid inventory design that you can use in any game.
MIT License
14 stars 0 forks source link

Error when clicking outside of inventory grid #3

Open PressFToPayRespekk opened 6 months ago

PressFToPayRespekk commented 6 months ago

I get this error when im left or right clicking outside of inventory after clicking the inventory the error no longer appears. moving items seem to not work at all.

NullReferenceException: Object reference not set to an instance of an object.
Inventory.ReachedBoundary (UnityEngine.Vector2Int slotPosition, InventoryGrid gridReference, System.Int32 width, System.Int32 height) (at Assets/Scripts/Inventory/Inventory.cs:330)
InventoryController.Update () (at Assets/Scripts/Inventory/InventoryController.cs:25)
owenhankinson commented 3 months ago

@DavidSouzaLD Agreed here getting the same issue ^^