From ac61a973ba31a697299226968508702771c162e3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 15 Oct 2022 13:37:08 +0100 Subject: Sequence straights chained together makes no sense --- ui/builders/straight.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/builders') 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: -- cgit v1.2.3