summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-07 11:58:44 +0200
committerGitHub <noreply@github.com>2022-07-07 11:58:44 +0200
commitbc419e1c5ee3a0cd8c4156b2e65d94f6f46c7543 (patch)
tree001582076bb72e265a8b6f469b2a19940432dcb4 /modules/gdscript/gdscript.cpp
parent8ec6c075bd38620358c1cadafa1a515a5711695a (diff)
parent0c5431644d103728aa926896d9bbdf40ed8d5cc3 (diff)
Merge pull request #62735 from bruvzg/unicode_parsers
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r--modules/gdscript/gdscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index e6aeef2fd1..bf83353ead 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -1050,7 +1050,7 @@ Error GDScript::load_source_code(const String &p_path) {
w[len] = 0;
String s;
- if (s.parse_utf8((const char *)w)) {
+ if (s.parse_utf8((const char *)w) != OK) {
ERR_FAIL_V_MSG(ERR_INVALID_DATA, "Script '" + p_path + "' contains invalid unicode (UTF-8), so it was not loaded. Please ensure that scripts are saved in valid UTF-8 unicode.");
}