Browse Source

Ensuring id is defined before trying to hook the target

pull/7/head
Ryan Reed 1 month ago
parent
commit
5e4f49e21c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      scenes/ui/waila.gd

+ 1
- 0
scenes/ui/waila.gd View File

@ -30,6 +30,7 @@ func get_target() -> Block:
func hook_target(id: String) -> void: func hook_target(id: String) -> void:
if not Globals.enable_waila: return if not Globals.enable_waila: return
if not id: return
var item: ItemResource = DBItems.data[id] var item: ItemResource = DBItems.data[id]
name_label.text = item.name + " (" + id + ")" name_label.text = item.name + " (" + id + ")"


Loading…
Cancel
Save