|
|
@@ -865,8 +865,7 @@ public:
|
|
|
*/
|
|
|
template<typename Component, typename... Args>
|
|
|
decltype(auto) replace(const entity_type entity, Args &&...args) {
|
|
|
- ENTT_ASSERT(valid(entity), "Invalid entity");
|
|
|
- return assure<Component>().patch(entity, [&args...](auto &...curr) { ((curr = Component{std::forward<Args>(args)...}), ...); });
|
|
|
+ return patch<Component>(entity, [&args...](auto &...curr) { ((curr = Component{std::forward<Args>(args)...}), ...); });
|
|
|
}
|
|
|
|
|
|
/**
|