mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Fixed WorldEnumerator crashes if one of the components doesn't exist
This commit is contained in:
@@ -34,11 +34,13 @@ namespace GlitchyEngine.World
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// One of the components isn't registered in the world thus there can't be any entity with this component and we don't need to enumerate...
|
||||||
#if GE_WORLD_ENUMERATOR_UNREGISTERED_COMPONENT_IS_WARNING
|
#if GE_WORLD_ENUMERATOR_UNREGISTERED_COMPONENT_IS_WARNING
|
||||||
Log.EngineLogger.Warning($"Queried component of type \"{type}\" is not registered for this world. The query will never return any results.");
|
Log.EngineLogger.Warning($"Queried component of type \"{type}\" is not registered for this world. The query will never return any results.");
|
||||||
#endif
|
#endif
|
||||||
DeleteAndNullify!(_bitMask);
|
DeleteAndNullify!(_bitMask);
|
||||||
_endEntry = _currentEntry;
|
_endEntry = _currentEntry;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user