Просмотр исходного кода

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

Hussein Taher 4 лет назад
Родитель
Сommit
6df19c833d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/snapshot.hpp

+ 1 - 1
src/entt/entity/snapshot.hpp

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