From c9d1ba6caead8464508733ad892ff74496a1c15e Mon Sep 17 00:00:00 2001 From: sippeangelo Date: Wed, 9 Dec 2015 11:07:46 +0100 Subject: [PATCH] EntityIDs should start at 1, because 0 is world --- include/Engine/Core/World.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Engine/Core/World.h b/include/Engine/Core/World.h index ab6f43fa..1ac10df1 100644 --- a/include/Engine/Core/World.h +++ b/include/Engine/Core/World.h @@ -25,7 +25,7 @@ public: const ComponentPool& GetComponents(std::string componentType); private: - EntityID m_CurrentEntityID = 0; + EntityID m_CurrentEntityID = 1; std::unordered_map m_EntityParents; std::unordered_multimap m_EntityChildren;