This commit is contained in:
NukeBird 2025-02-20 18:17:30 +03:00
parent 46e66aff12
commit e99adff481

View file

@ -12,7 +12,7 @@
#include <vector> #include <vector>
#ifndef ZECSY_MAX_COMPONENTS #ifndef ZECSY_MAX_COMPONENTS
#define ZECSY_MAX_COMPONENTS 32 #define ZECSY_MAX_COMPONENTS 32
#endif // !ZECSY_MAX_COMPONENTS #endif // !ZECSY_MAX_COMPONENTS
namespace zecsy namespace zecsy
@ -268,7 +268,7 @@ namespace zecsy
} }
archetypes[archetype].emplace(e); archetypes[archetype].emplace(e);
} }
template<Component T> template<Component T>
inline void world::set(entity_id e) inline void world::set(entity_id e)
@ -297,7 +297,7 @@ namespace zecsy
archetype.reset(id); archetype.reset(id);
archetypes[archetype].emplace(e); archetypes[archetype].emplace(e);
auto& pool = pools[id]; auto& pool = pools[id];
auto index = pool.entity_to_index[e]; auto index = pool.entity_to_index[e];
pool.free_list.push_back(index); pool.free_list.push_back(index);