mirror of https://github.com/WerWolv/ImHex.git
patterns: Fix members getting added multiple times
This commit is contained in:
parent
45b00c8b5f
commit
cab3410d23
|
@ -642,6 +642,8 @@ namespace hex::lang {
|
|||
}
|
||||
|
||||
void setMembers(const std::vector<PatternData*> & members) {
|
||||
this->m_members.clear();
|
||||
|
||||
for (auto &member : members) {
|
||||
if (member == nullptr) continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue