diff options
Diffstat (limited to 'ui/builders')
-rw-r--r-- | ui/builders/join.cpp | 2 | ||||
-rw-r--r-- | ui/builders/join.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/builders/join.cpp b/ui/builders/join.cpp index 90b1d61..cc2ca2d 100644 --- a/ui/builders/join.cpp +++ b/ui/builders/join.cpp @@ -37,7 +37,7 @@ BuilderJoin::click(Network * network, const GeoData *, const SDL_MouseButtonEven } void -BuilderJoin::create(Network * network, const NodePtr & p1, const NodePtr & p2) const +BuilderJoin::create(Network * network, const Node::Ptr & p1, const Node::Ptr & p2) const { network->addJoins(p1->pos, p2->pos); } diff --git a/ui/builders/join.h b/ui/builders/join.h index d4fb534..30d39cd 100644 --- a/ui/builders/join.h +++ b/ui/builders/join.h @@ -9,7 +9,7 @@ class BuilderJoin : public EditNetwork::Builder { std::string hint() const override; void click(Network * network, const GeoData * geoData, const SDL_MouseButtonEvent & e, const Ray & ray) override; - void create(Network * network, const NodePtr & p1, const NodePtr & p2) const; + void create(Network * network, const Node::Ptr & p1, const Node::Ptr & p2) const; - NodePtr p1; + Node::Ptr p1; }; |