Skip to content

Commit ee96e6e

Browse files
committed
Fix scraper game picker selecting null entry when there's no games
1 parent 9f165b6 commit ee96e6e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

scenes/config/ScraperSettings.tscn

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
[sub_resource type="FontFile" id="1"]
1313
fallbacks = Array[Font]([ExtResource("2")])
14-
face_index = null
15-
embolden = null
16-
transform = null
1714
cache/0/16/0/ascent = 0.0
1815
cache/0/16/0/descent = 0.0
1916
cache/0/16/0/underline_position = 0.0

scenes/popups/scraping_game_picker/ScrapingGamePickerPopup.gd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ func get_selected_items(_root: TreeItem):
101101
if _root.get_children():
102102
selected_items.append_array(get_selected_items(next.get_child(0)))
103103
elif next.is_checked(1):
104-
selected_items.append(next.get_metadata(0))
104+
var game : RetroHubGameData = next.get_metadata(0)
105+
if game:
106+
selected_items.append(game)
105107
next = next.get_next()
106108
return selected_items
107109

0 commit comments

Comments
 (0)