diff options
Diffstat (limited to 'ui/builders')
-rw-r--r-- | ui/builders/straight.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/builders/straight.cpp b/ui/builders/straight.cpp index 477b40d..4fa9585 100644 --- a/ui/builders/straight.cpp +++ b/ui/builders/straight.cpp @@ -32,8 +32,11 @@ BuilderStraight::click(Network * network, const GeoData * geoData, const SDL_Mou if (p1) { create(network, *p1, *p); candidateLinks.removeAll(); + p1.reset(); + } + else { + p1 = p; } - p1 = *p; } return; case SDL_BUTTON_MIDDLE: |