Skip to content

Commit

Permalink
Merge pull request #50247 from Faless/js/if_fix
Browse files Browse the repository at this point in the history
[HTML5] Fix JavaScript string parsing with new interface.
  • Loading branch information
akien-mga authored Jul 7, 2021
2 parents 48a5226 + d4e302a commit 56d7126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/javascript/javascript_singleton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Variant JavaScriptObjectImpl::_js2variant(int p_type, godot_js_wrapper_ex *p_val
case Variant::FLOAT:
return p_val->r;
case Variant::STRING: {
String out((const char *)p_val->p);
String out = String::utf8((const char *)p_val->p);
free(p_val->p);
return out;
}
Expand Down

0 comments on commit 56d7126

Please sign in to comment.