snapshot: fix warning for discarding a nodiscard (#728)
This commit is contained in:
committed by
Michele Caini
parent
78d9e71888
commit
6df19c833d
@@ -55,7 +55,7 @@ class basic_snapshot {
|
||||
|
||||
while(begin != last) {
|
||||
const auto entt = *(begin++);
|
||||
((reg->template all_of<Component>(entt) ? ++size[Index] : size[Index]), ...);
|
||||
((reg->template all_of<Component>(entt) ? ++size[Index] : 0u), ...);
|
||||
}
|
||||
|
||||
(get<Component>(archive, size[Index], first, last), ...);
|
||||
|
||||
Reference in New Issue
Block a user