Lights
This commit is contained in:
@@ -69,6 +69,10 @@ class HydraComponentArray : public IHydraComponentArray
|
||||
T& GetComponent(HydraID entity_id)
|
||||
{
|
||||
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 get a component that doesnt exist");
|
||||
HydraID component_index = m_entity_to_component[entity_id];
|
||||
return m_components[component_index];
|
||||
|
||||
Reference in New Issue
Block a user