From cab3410d236e8ad7870b96a3b3b7af990abd46ba Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 13 Apr 2021 22:08:02 +0200 Subject: [PATCH] patterns: Fix members getting added multiple times --- plugins/libimhex/include/hex/lang/pattern_data.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/libimhex/include/hex/lang/pattern_data.hpp b/plugins/libimhex/include/hex/lang/pattern_data.hpp index cc4b9f06e..e393fb8cb 100644 --- a/plugins/libimhex/include/hex/lang/pattern_data.hpp +++ b/plugins/libimhex/include/hex/lang/pattern_data.hpp @@ -642,6 +642,8 @@ namespace hex::lang { } void setMembers(const std::vector & members) { + this->m_members.clear(); + for (auto &member : members) { if (member == nullptr) continue;