Explorar o código

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

Hussein Taher %!s(int64=4) %!d(string=hai) anos
pai
achega
ffed8f37de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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), ...);