1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix some issues found by clang sanitizers.

This commit is contained in:
bruvzg
2022-03-31 18:35:56 +03:00
parent c5f9424fbd
commit 947d7c8329
2 changed files with 4 additions and 4 deletions

View File

@@ -824,7 +824,7 @@ Error GDScript::reload(bool p_keep_state) {
// Loading a template, don't parse.
#ifdef TOOLS_ENABLED
if (basedir.begins_with(EditorSettings::get_singleton()->get_project_script_templates_dir())) {
if (EditorSettings::get_singleton() && basedir.begins_with(EditorSettings::get_singleton()->get_project_script_templates_dir())) {
return OK;
}
#endif