From 966b8c33c7be8acb4302f620e9d5d946cbe3886e Mon Sep 17 00:00:00 2001 From: Johan Mattsson <39247600+mjunix@users.noreply.github.com> Date: Sun, 13 Aug 2023 13:15:43 +0200 Subject: [PATCH] Fix incorrect comparison --- tools/quake3/q3map2/tjunction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/tjunction.c b/tools/quake3/q3map2/tjunction.c index 317a0a36..b1752e18 100644 --- a/tools/quake3/q3map2/tjunction.c +++ b/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;