From 25f4611a2473329b476fe33b6d2f99c381ff2e27 Mon Sep 17 00:00:00 2001 From: Johan Mattsson <39247600+mjunix@users.noreply.github.com> Date: Sun, 13 Aug 2023 13:16:55 +0200 Subject: [PATCH] Fix incorrect comparison --- tools/urt/tools/quake3/q3map2/tjunction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/urt/tools/quake3/q3map2/tjunction.c b/tools/urt/tools/quake3/q3map2/tjunction.c index 1a493d3c..cda67480 100644 --- a/tools/urt/tools/quake3/q3map2/tjunction.c +++ b/tools/urt/tools/quake3/q3map2/tjunction.c @@ -616,7 +616,7 @@ int EdgeCompare( const void *elem1, const void *elem2 ) { if ( d1 < d2 ) { return -1; } - if ( d2 > d1 ) { + if ( d2 < d1 ) { return 1; } return 0;