diff --git a/src/component_pool.hpp b/src/component_pool.hpp index b18936bc2..58a8110dd 100644 --- a/src/component_pool.hpp +++ b/src/component_pool.hpp @@ -23,7 +23,7 @@ public: using size_type = typename std::vector::size_type; private: - bool valid(entity_type entity) const noexcept { + inline bool valid(entity_type entity) const noexcept { return entity < reverse.size() && reverse[entity] < direct.size() && direct[reverse[entity]] == entity; }