Skip to content

Commit

Permalink
Merge pull request #4 from pfthroaway/master
Browse files Browse the repository at this point in the history
Fixed a crash occurring when holding an item and clicking between the…
  • Loading branch information
Oen44 authored Nov 3, 2019
2 parents af5b78d + 8a982f2 commit a7dedc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Inventory.gd
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ func _gui_input(event):
clickedSlot = slot;

if holdingItem == null and clickedSlot == null:
return
return;

if clickedSlot == null:
return;

if holdingItem != null and clickedSlot != null:
if clickedSlot.item != null:
Expand Down
2 changes: 1 addition & 1 deletion Inventory.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ margin_right = 154.0
margin_bottom = 193.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
Expand Down

0 comments on commit a7dedc3

Please sign in to comment.