You've already forked godot
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user