fix lookup crash on component that is only read by renderers

pull/2/head
Evan Hemsley 2020-03-11 17:02:00 -07:00
parent c1e1f7f5ca
commit 4be62122ab
1 changed files with 1 additions and 1 deletions

View File

@ -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>;
}