mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Remove unnecessary assignments
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
parent
aa5b6ed13e
commit
80fb8db31f
19 changed files with 31 additions and 56 deletions
|
|
@ -1117,8 +1117,7 @@ GDScript *GDScript::find_class(const String &p_qualified_name) {
|
|||
|
||||
// Starts at index 1 because index 0 was handled above.
|
||||
for (int i = 1; result != nullptr && i < class_names.size(); i++) {
|
||||
String current_name = class_names[i];
|
||||
if (HashMap<StringName, Ref<GDScript>>::Iterator E = result->subclasses.find(current_name)) {
|
||||
if (HashMap<StringName, Ref<GDScript>>::Iterator E = result->subclasses.find(class_names[i])) {
|
||||
result = E->value.ptr();
|
||||
} else {
|
||||
// Couldn't find inner class.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue