Fixed weird behavior when components would register multiple times (Hint: It should never happen in the first place)
This commit is contained in:
+2
-2
@@ -52,8 +52,8 @@ Game::Game(int argc, char* argv[])
|
||||
auto file = ResourceManager::Load<EntityFile>(mapToLoad);
|
||||
EntityFilePreprocessor fpp(file);
|
||||
fpp.RegisterComponents(m_World);
|
||||
//EntityFileParser fp(file);
|
||||
//fp.MergeEntities(m_World);
|
||||
EntityFileParser fp(file);
|
||||
fp.MergeEntities(m_World);
|
||||
}
|
||||
|
||||
// Create system pipeline
|
||||
|
||||
Reference in New Issue
Block a user