From 742106772fcb638c8c5d8814e109167fc09ca797 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Sun, 6 Aug 2017 16:03:57 +0200 Subject: [PATCH] minor changes --- src/component_pool.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }