Skip to content

Commit

Permalink
Backport #207 fix from 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremi360 committed Apr 6, 2023
1 parent 0a6fc2f commit deb801a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/Rakugo/lib/systems/Executer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ func do_execute_script(parameters:Dictionary):
var var_ = Rakugo.get_variable(sub_result.get_string("variable"))

if var_:
if typeof(var_) != TYPE_STRING:
var_ = str(var_)

text = text.replace(sub_result.strings[0], var_)

Rakugo.say(result.get_string("character_tag"), text)
Expand Down

0 comments on commit deb801a

Please sign in to comment.