Skip to content

Commit deb801a

Browse files
committed
Backport #207 fix from 2.0.2
1 parent 0a6fc2f commit deb801a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addons/Rakugo/lib/systems/Executer.gd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ func do_execute_script(parameters:Dictionary):
192192
var var_ = Rakugo.get_variable(sub_result.get_string("variable"))
193193

194194
if var_:
195+
if typeof(var_) != TYPE_STRING:
196+
var_ = str(var_)
197+
195198
text = text.replace(sub_result.strings[0], var_)
196199

197200
Rakugo.say(result.get_string("character_tag"), text)

0 commit comments

Comments
 (0)