Need to rework origins
This commit is contained in:
@@ -63,6 +63,10 @@ class HydraComponentArray : public IHydraComponentArray, HydraObject
|
||||
void AddComponent(HydraID entity_id, T component)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m_mutex);
|
||||
if(m_entity_to_component.find(entity_id) != m_entity_to_component.end())
|
||||
{
|
||||
std::cout << "HERE";
|
||||
}
|
||||
assert(m_entity_to_component.find(entity_id) == m_entity_to_component.end() && "Trying to add a component that already exist");
|
||||
m_components[m_component_count] = component;
|
||||
m_entity_to_component.insert({entity_id, m_component_count});
|
||||
|
||||
Reference in New Issue
Block a user