diff --git a/src/gaemstone.ECS/EntityPath.cs b/src/gaemstone.ECS/EntityPath.cs index 9f68ecb..79b8f4e 100644 --- a/src/gaemstone.ECS/EntityPath.cs +++ b/src/gaemstone.ECS/EntityPath.cs @@ -52,6 +52,9 @@ public class EntityPath public static unsafe EntityPath From(World world, Entity entity) { + if (entity.IsNone) throw new ArgumentException( + "entity is Entity.None", nameof(entity)); + var parts = new List(32); do {