Browse Source

test: avoid shadow warnings

skypjack 3 năm trước cách đây
mục cha
commit
e10d2cb37e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      test/snapshot/snapshot.cpp

+ 2 - 2
test/snapshot/snapshot.cpp

@@ -117,8 +117,8 @@ TEST(Snapshot, Continuous) {
         entity.push_back(source.create());
     }
 
-    for(auto entity: entity) {
-        source.destroy(entity);
+    for(auto entt: entity) {
+        source.destroy(entt);
     }
 
     auto e0 = source.create();