Bladeren bron

get rid of clang errors

Michele Caini 7 jaren geleden
bovenliggende
commit
353a0d14a4
2 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 1 0
      TODO
  2. 2 2
      src/entt/entity/registry.hpp

+ 1 - 0
TODO

@@ -23,6 +23,7 @@
 * cleanup - see https://github.com/skypjack/entt/commit/ad5cedc08c83e8cbcc8aaeac9634d44624ffe35a#commitcomment-32380903
 
 ==> can we do more for shared libraries? who knows... see #144
+* get rid of get_pool_data (welcome structured bindings)
 * to be updated: dispatcher
 * to be updated: registry
 * to be updated: emitter

+ 2 - 2
src/entt/entity/registry.hpp

@@ -76,8 +76,8 @@ class registry {
         }
 
         void destroy_if(registry &, const Entity entity) {
-            if(has(entity)) {
-                destroy(entity);
+            if(this->has(entity)) {
+                this->destroy(entity);
             }
         }
     };