Skip to content

Commit

Permalink
Fix runtime error #99 by fuzzyTew
Browse files Browse the repository at this point in the history
  • Loading branch information
CzlowiekImadlo committed Jan 10, 2019
1 parent 29a3ac1 commit a652b22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/language.gd
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ func reload_labels():


func reload_button(button, translation, label_node_name="Label"):
if button:
if button and buggon.has_node(label_node_name):

This comment has been minimized.

Copy link
@fuzzyTew

fuzzyTew Jan 10, 2019

Contributor

looks like a typo here, buggon

This comment has been minimized.

Copy link
@czlowiekimadlo

czlowiekimadlo Jan 10, 2019

Collaborator

It is. Already fixed in 85525af

self.reload_label(button.get_node(label_node_name), translation)
else:
self.reload_label(button, translation)

func reload_label(label, translation):
if label:
Expand Down

0 comments on commit a652b22

Please sign in to comment.