Skip to content

Commit b72f274

Browse files
authored
Merge pull request #207 from theludovyc/fix#206_testSay_replace_failed
Fix #206 replace now works with all types
2 parents aeb9c21 + ecca89e commit b72f274

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)