Skip to content

Commit 0616a81

Browse files
committed
Okay, I tried, but this is all I could come up with. I'm sorry. Okay bye :')
1 parent 57b0923 commit 0616a81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

addons/dialogic/Other/DialogicClass.gd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ static func get_variable(name: String) -> String:
132132
if Engine.is_editor_hint():
133133
return Engine.get_singleton('DialogicSingleton').get_variable(name)
134134
else:
135-
return DialogicSingleton.get_variable(name)
135+
if DialogicSingleton:
136+
return DialogicSingleton.get_variable(name)
137+
else:
138+
return ''
136139

137140

138141
## Sets the value for the variable with the given name.

0 commit comments

Comments
 (0)