Jelajahi Sumber

davey: minor changes

skypjack 7 bulan lalu
induk
melakukan
7f5d4fb8d2
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/entt/tools/davey.hpp

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

@@ -38,7 +38,7 @@ static void present_element(const entt::meta_any &obj, OnEntity on_entity) {
             if(const auto entt = elem.template cast<Entity>(); entt == entt::null) {
                 ImGui::Text("%s: %s", LABEL_OR(type), "null");
             } else {
-                on_entity(LABEL_OR(type), elem.template cast<Entity>());
+                on_entity(LABEL_OR(type), entt);
             }
         } else if(type.is_enum()) {
             const char *as_string = nullptr;