Skip to content

Commit 820ff72

Browse files
committed
engine: Fix plugin clobbering not working
1 parent 3d26e0a commit 820ff72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/stack.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ class FactoryPlugin : public fable::schema::FactoryPointerless<C> {
485485
virtual ~FactoryPlugin() = default;
486486

487487
void add_plugin(const std::string& name, std::shared_ptr<Plugin> p) {
488-
this->add_factory(name, p->make<F>()->schema(), [p, name](const Conf& c) {
488+
this->set_factory(name, p->make<F>()->schema(), [p, name](const Conf& c) {
489489
C tmp{name, p->make<F>()};
490490
tmp.from_conf(c);
491491
return tmp;

0 commit comments

Comments
 (0)