Răsfoiți Sursa

minor changes

Michele Caini 9 ani în urmă
părinte
comite
742106772f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/component_pool.hpp

+ 1 - 1
src/component_pool.hpp

@@ -23,7 +23,7 @@ public:
     using size_type = typename std::vector<component_type>::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;
     }