ecs: avoid @tagName failure on empty union field
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f41b1b4f7b
commit
de398b0fde
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ pub fn MessagesTag(comptime messages: anytype) type {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const NoComponents = @TypeOf(.{});
|
const NoComponents = @TypeOf(.{ .none = void });
|
||||||
const NoState = @TypeOf(.{});
|
const NoState = @TypeOf(.{});
|
||||||
|
|
||||||
/// Returns the namespaced components struct **type**.
|
/// Returns the namespaced components struct **type**.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue