Michele Caini 3 лет назад
Родитель
Сommit
41081204f9
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      test/lib/meta_plugin/main.cpp
  2. 2 2
      test/lib/meta_plugin_std/main.cpp

+ 2 - 2
test/lib/meta_plugin/main.cpp

@@ -18,9 +18,9 @@ TEST(Lib, Meta) {
     ud.ctx = entt::locator<entt::meta_ctx>::handle();
 
     cr_plugin ctx;
-    cr_plugin_load(ctx, PLUGIN);
-
     ctx.userdata = &ud;
+
+    cr_plugin_load(ctx, PLUGIN);
     cr_plugin_update(ctx);
 
     entt::meta<double>().conv<int>();

+ 2 - 2
test/lib/meta_plugin_std/main.cpp

@@ -17,9 +17,9 @@ TEST(Lib, Meta) {
     ud.ctx = entt::locator<entt::meta_ctx>::handle();
 
     cr_plugin ctx;
-    cr_plugin_load(ctx, PLUGIN);
-
     ctx.userdata = &ud;
+
+    cr_plugin_load(ctx, PLUGIN);
     cr_plugin_update(ctx);
 
     entt::meta<double>().conv<int>();