ecs: avoid @tagName failure on empty union field

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-03-26 22:24:10 -07:00 committed by Stephen Gutekanst
parent f41b1b4f7b
commit de398b0fde

View file

@ -99,7 +99,7 @@ pub fn MessagesTag(comptime messages: anytype) type {
});
}
const NoComponents = @TypeOf(.{});
const NoComponents = @TypeOf(.{ .none = void });
const NoState = @TypeOf(.{});
/// Returns the namespaced components struct **type**.