changeset 1812:cfb623a04f77

No need to doublecheck for SET_MAX_MATCHES.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 30 Oct 2017 00:07:14 +0200
parents 96912030d785
children d7deea635463
files mapsearch.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mapsearch.c	Mon Oct 30 00:06:39 2017 +0200
+++ b/mapsearch.c	Mon Oct 30 00:07:14 2017 +0200
@@ -777,7 +777,8 @@
                 match->accuracy = accuracy;
                 match->centered = centerFound;
 
-                if (nmatches >= SET_MAX_MATCHES || nmatches >= maxMatches)
+                // Check for max matches
+                if (nmatches >= maxMatches)
                     goto out;
             }
         }