mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Replaced Error with debug assert
This commit is contained in:
@@ -156,11 +156,8 @@ namespace GlitchyEngine.World
|
|||||||
ComponentPoolEntry entry;
|
ComponentPoolEntry entry;
|
||||||
if(!_componentPools.TryGetValue(typeof(T), out entry))
|
if(!_componentPools.TryGetValue(typeof(T), out entry))
|
||||||
{
|
{
|
||||||
Log.EngineLogger.Error($"Tried to assign unregistered component type {typeof(T)}");
|
Log.EngineLogger.AssertDebug(false, scope $"Tried to assign unregistered component type {typeof(T)}");
|
||||||
return null;
|
return null;
|
||||||
//entry = ((uint32)_componentPools.Count, new ComponentPool(sizeof(T), MaxEntities));
|
|
||||||
|
|
||||||
//_componentPools.Add(typeof(T), entry);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: maybe assert?
|
// TODO: maybe assert?
|
||||||
|
|||||||
Reference in New Issue
Block a user