sparse_set: ::get -> ::value (to avoid hiding from derived classes)
This commit is contained in:
@@ -28,7 +28,7 @@ TEST(Example, EntityCopy) {
|
||||
for(auto [id, storage]: registry.storage()) {
|
||||
// discard the custom storage because why not, this is just an example after all
|
||||
if(id != "custom"_hs && storage.contains(src)) {
|
||||
storage.push(dst, storage.get(src));
|
||||
storage.push(dst, storage.value(src));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ TEST(Example, DifferentRegistryTypes) {
|
||||
|
||||
for(auto [id, storage]: src.storage()) {
|
||||
if(auto *other = dst.storage(id); other && storage.contains(entity)) {
|
||||
other->push(copy, storage.get(entity));
|
||||
other->push(copy, storage.value(entity));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user