diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-07-07 11:58:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 11:58:44 +0200 |
commit | bc419e1c5ee3a0cd8c4156b2e65d94f6f46c7543 (patch) | |
tree | 001582076bb72e265a8b6f469b2a19940432dcb4 /modules/gdscript/gdscript_cache.cpp | |
parent | 8ec6c075bd38620358c1cadafa1a515a5711695a (diff) | |
parent | 0c5431644d103728aa926896d9bbdf40ed8d5cc3 (diff) |
Merge pull request #62735 from bruvzg/unicode_parsers
Diffstat (limited to 'modules/gdscript/gdscript_cache.cpp')
-rw-r--r-- | modules/gdscript/gdscript_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp index 4c15fca91e..48d5fbc569 100644 --- a/modules/gdscript/gdscript_cache.cpp +++ b/modules/gdscript/gdscript_cache.cpp @@ -157,7 +157,7 @@ String GDScriptCache::get_source_code(const String &p_path) { source_file.write[len] = 0; String source; - if (source.parse_utf8((const char *)source_file.ptr())) { + if (source.parse_utf8((const char *)source_file.ptr()) != OK) { ERR_FAIL_V_MSG("", "Script '" + p_path + "' contains invalid unicode (UTF-8), so it was not loaded. Please ensure that scripts are saved in valid UTF-8 unicode."); } return source; |