diff options
Diffstat (limited to 'Source/Panel.cpp')
-rw-r--r-- | Source/Panel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Panel.cpp b/Source/Panel.cpp index f8dc36b..4ed5c51 100644 --- a/Source/Panel.cpp +++ b/Source/Panel.cpp | |||
@@ -37,6 +37,8 @@ void PuzzleSerializer::ReadIntersections(Puzzle& p, int id) { | |||
37 | } | 37 | } |
38 | 38 | ||
39 | for (int j=0; j<numIntersections; j++) { | 39 | for (int j=0; j<numIntersections; j++) { |
40 | if (intersectionFlags[connections_a[j]] & Flags::IS_ENDPOINT) break; | ||
41 | if (intersectionFlags[connections_b[j]] & Flags::IS_ENDPOINT) break; | ||
40 | float x1 = intersectionLocations[2*connections_a[j]]; | 42 | float x1 = intersectionLocations[2*connections_a[j]]; |
41 | float y1 = intersectionLocations[2*connections_a[j]+1]; | 43 | float y1 = intersectionLocations[2*connections_a[j]+1]; |
42 | float x2 = intersectionLocations[2*connections_b[j]]; | 44 | float x2 = intersectionLocations[2*connections_b[j]]; |