Merge remote-tracking branch 'origin/fix_lookup_crash' into new_stuff

pull/2/head
Evan Hemsley 2020-03-16 19:01:34 -07:00
commit 62a717cfbb
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>;
}