Fix some issues found by clang sanitizers.
This commit is contained in:
parent
c5f9424fbd
commit
947d7c8329
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue