Rename instance()->instantiate() when it's a verb
This commit is contained in:
@ -134,7 +134,7 @@ Ref<GDScriptParserRef> GDScriptCache::get_parser(const String &p_path, GDScriptP
|
||||
return ref;
|
||||
}
|
||||
GDScriptParser *parser = memnew(GDScriptParser);
|
||||
ref.instance();
|
||||
ref.instantiate();
|
||||
ref->parser = parser;
|
||||
ref->path = p_path;
|
||||
singleton->parser_map[p_path] = ref.ptr();
|
||||
@ -180,7 +180,7 @@ Ref<GDScript> GDScriptCache::get_shallow_script(const String &p_path, const Stri
|
||||
}
|
||||
|
||||
Ref<GDScript> script;
|
||||
script.instance();
|
||||
script.instantiate();
|
||||
script->set_path(p_path, true);
|
||||
script->set_script_path(p_path);
|
||||
script->load_source_code(p_path);
|
||||
|
||||
Reference in New Issue
Block a user