patterns: Fix members getting added multiple times

This commit is contained in:
WerWolv 2021-04-13 22:08:02 +02:00
parent 45b00c8b5f
commit cab3410d23
1 changed files with 2 additions and 0 deletions

View File

@ -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;