瀏覽代碼

davey: cleanup

skypjack 11 月之前
父節點
當前提交
6db98b40a1
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      tools/entt/davey/davey.hpp

+ 1 - 3
tools/entt/davey/davey.hpp

@@ -197,9 +197,7 @@ void davey(const meta_ctx &ctx, const entt::basic_registry<Entity, Allocator> &r
     ImGui::BeginTabBar("#tabs");
     ImGui::BeginTabBar("#tabs");
 
 
     if(ImGui::BeginTabItem("Entity")) {
     if(ImGui::BeginTabItem("Entity")) {
-        const auto &storage = registry.template storage<Entity>();
-
-        for(const auto [entt]: storage->each()) {
+        for(const auto [entt]: registry.template storage<Entity>()->each()) {
             ImGui::PushID(static_cast<int>(entt::to_entity(entt)));
             ImGui::PushID(static_cast<int>(entt::to_entity(entt)));
 
 
             if(ImGui::TreeNode(&entt::type_id<entt::entity>(), "%d [%d/%d]", entt::to_integral(entt), entt::to_entity(entt), entt::to_version(entt))) {
             if(ImGui::TreeNode(&entt::type_id<entt::entity>(), "%d [%d/%d]", entt::to_integral(entt), entt::to_entity(entt), entt::to_version(entt))) {