Skip to content

Commit

Permalink
Clear components in a separate pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Hual committed Sep 21, 2023
1 parent 749dd5a commit 6be5a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/Source/core_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ class ComponentList : public IComponentList
pair.second->onFree(it->second);
});
it->second->free();
it = components.erase(it);
}
components.clear();
}

auto add(IComponent* component)
Expand Down

0 comments on commit 6be5a20

Please sign in to comment.