summaryrefslogtreecommitdiff
path: root/ui/builders/straight.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/builders/straight.cpp')
-rw-r--r--ui/builders/straight.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/builders/straight.cpp b/ui/builders/straight.cpp
index 43f5ec8..014eea5 100644
--- a/ui/builders/straight.cpp
+++ b/ui/builders/straight.cpp
@@ -1,4 +1,5 @@
#include "straight.h"
+#include "stream_support.h"
#include <game/geoData.h>
std::string
@@ -48,8 +49,8 @@ BuilderStraight::click(
}
}
-void
+Link::CCollection
BuilderStraight::create(Network * network, GlobalPosition3D p1, GlobalPosition3D p2) const
{
- network->addStraight(p1, p2);
+ return network->addStraight(p1, p2);
}