|
|
@@ -1389,7 +1389,7 @@ public:
|
|
|
meta_any invoke(const id_type id, meta_handle instance, meta_any *const args, const size_type sz) const {
|
|
|
if(node.details) {
|
|
|
if(auto it = node.details->func.find(id); it != node.details->func.cend()) {
|
|
|
- if(const auto *candidate = lookup(args, sz, (instance->data() == nullptr), [curr = &it->second]() mutable { return curr ? std::exchange(curr, curr->next.get()) : nullptr; }); candidate) {
|
|
|
+ if(const auto *candidate = lookup(args, sz, instance && (instance->data() == nullptr), [curr = &it->second]() mutable { return curr ? std::exchange(curr, curr->next.get()) : nullptr; }); candidate) {
|
|
|
return candidate->invoke(*ctx, meta_handle{*ctx, std::move(instance)}, args);
|
|
|
}
|
|
|
}
|