diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-27 13:49:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 13:49:15 +0200 |
commit | 4633f8c3ba8fe16405f9ea03544cb0004f2216bc (patch) | |
tree | 60e29ac20fd2af7ed7f3ad03547bf1ae3f4ff8cd /core/io/resource_uid.cpp | |
parent | a0ca7a673cd393a6622249ab99aa970915b07a7d (diff) | |
parent | b024d16bc147e7eebcef0248e3a2a8cfec15973f (diff) |
Merge pull request #53121 from timothyqiu/resource-id-utf8
Diffstat (limited to 'core/io/resource_uid.cpp')
-rw-r--r-- | core/io/resource_uid.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/io/resource_uid.cpp b/core/io/resource_uid.cpp index 97d683f415..290a71043c 100644 --- a/core/io/resource_uid.cpp +++ b/core/io/resource_uid.cpp @@ -126,8 +126,7 @@ String ResourceUID::get_id_path(ID p_id) const { MutexLock l(mutex); ERR_FAIL_COND_V(!unique_ids.has(p_id), String()); const CharString &cs = unique_ids[p_id].cs; - String s(cs.ptr()); - return s; + return String::utf8(cs.ptr()); } void ResourceUID::remove_id(ID p_id) { MutexLock l(mutex); |