Skip to content

Commit

Permalink
Okay, I tried, but this is all I could come up with. I'm sorry. Okay …
Browse files Browse the repository at this point in the history
…bye :')
  • Loading branch information
coppolaemilio committed Jul 25, 2021
1 parent 57b0923 commit 0616a81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/dialogic/Other/DialogicClass.gd
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ static func get_variable(name: String) -> String:
if Engine.is_editor_hint():
return Engine.get_singleton('DialogicSingleton').get_variable(name)
else:
return DialogicSingleton.get_variable(name)
if DialogicSingleton:
return DialogicSingleton.get_variable(name)
else:
return ''


## Sets the value for the variable with the given name.
Expand Down

0 comments on commit 0616a81

Please sign in to comment.