From 7d73f58bc4698ac9252c08770b833f0f55377f87 Mon Sep 17 00:00:00 2001 From: D8H Date: Thu, 1 Aug 2024 16:13:51 +0200 Subject: [PATCH] Fix a crash when renaming a child variable (#6839) --- Core/GDCore/Project/Variable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/GDCore/Project/Variable.cpp b/Core/GDCore/Project/Variable.cpp index 8f6d742e33d7..2f06d240be74 100644 --- a/Core/GDCore/Project/Variable.cpp +++ b/Core/GDCore/Project/Variable.cpp @@ -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;