Browse Source

meta: avoid using node in meta_any if not necessary

skypjack 6 months ago
parent
commit
d058ccd084
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -1603,7 +1603,7 @@ inline bool meta_any::assign(const meta_any &other) {
 }
 }
 
 
 inline bool meta_any::assign(meta_any &&other) {
 inline bool meta_any::assign(meta_any &&other) {
-    if(*node.info == *other.node.info) {
+    if(storage.info() == other.storage.info()) {
         return storage.assign(std::move(other.storage));
         return storage.assign(std::move(other.storage));
     }
     }