snapshot: fix warning for discarding a nodiscard (#728)

This commit is contained in:
Hussein Taher
2021-07-05 14:35:09 +02:00
committed by Michele Caini
parent 78d9e71888
commit 6df19c833d

View File

@@ -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), ...);