EntityIDs should start at 1, because 0 is world

This commit is contained in:
sippeangelo
2015-12-09 11:07:46 +01:00
parent d597c7e60e
commit c9d1ba6cae
+1 -1
View File
@@ -25,7 +25,7 @@ public:
const ComponentPool& GetComponents(std::string componentType);
private:
EntityID m_CurrentEntityID = 0;
EntityID m_CurrentEntityID = 1;
std::unordered_map<EntityID, EntityID> m_EntityParents;
std::unordered_multimap<EntityID, EntityID> m_EntityChildren;