Skip to content

Commit

Permalink
Fix a crash when renaming a child variable (#6839)
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H authored Aug 1, 2024
1 parent 9171b40 commit 7d73f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/GDCore/Project/Variable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ bool Variable::operator==(const gd::Variable &variable) const {
const auto &child = pair.second;

auto it = variable.children.find(name);
if (it == children.end()) {
if (it == variable.children.end()) {
return false;
}
auto &otherChild = it->second;
Expand Down

0 comments on commit 7d73f58

Please sign in to comment.