aboutsummaryrefslogtreecommitdiffstats
path: root/problem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'problem.cpp')
-rw-r--r--problem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/problem.cpp b/problem.cpp
index c919710..bcae056 100644
--- a/problem.cpp
+++ b/problem.cpp
@@ -110,7 +110,7 @@ vector<solution> solution::direct_sol(const hilare_a &pos_a, const hilare_a &pos
int eps[4][2] = { { 1, 1 }, { 1, -1 }, { -1, 1 }, { -1, -1 } };
double delta = cca.x * ccb.y - cca.y * ccb.x;
- assert(delta != 0);
+ if (delta == 0) return ret; // no solution in this case, we count on direct_sol_r
for (int i_eps = 0; i_eps < 4; i_eps++) {
int ea = eps[i_eps][0];