Forráskód Böngészése

test: minor changes

Michele Caini 3 éve
szülő
commit
62f1971f7b
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      test/entt/entity/registry.cpp

+ 2 - 2
test/entt/entity/registry.cpp

@@ -73,11 +73,11 @@ struct destruction_order {
     destruction_order(const entt::registry &ref, bool &ctx)
     destruction_order(const entt::registry &ref, bool &ctx)
         : registry{&ref},
         : registry{&ref},
           ctx_check{&ctx} {
           ctx_check{&ctx} {
-        *ctx_check = (registry->ctx().find<int>() != nullptr);
+        *ctx_check = (registry->ctx().find<ctx_check_type>() != nullptr);
     }
     }
 
 
     ~destruction_order() {
     ~destruction_order() {
-        *ctx_check = *ctx_check && (registry->ctx().find<int>() != nullptr);
+        *ctx_check = *ctx_check && (registry->ctx().find<ctx_check_type>() != nullptr);
     }
     }
 
 
 private:
 private: