Merge remote-tracking branch 'origin/fix_lookup_crash' into new_stuff
commit
62a717cfbb
|
@ -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