fix lookup crash on component that is only read by renderers
parent
c1e1f7f5ca
commit
4be62122ab
|
@ -33,7 +33,7 @@ namespace Encompass
|
|||
|
||||
private TypedComponentStore<TComponent> Lookup<TComponent>() where TComponent : struct, IComponent
|
||||
{
|
||||
//RegisterComponentType<TComponent>();
|
||||
if (!Stores.ContainsKey(typeof(TComponent))) { RegisterComponentType<TComponent>(); }
|
||||
return Stores[typeof(TComponent)] as TypedComponentStore<TComponent>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue