From 26502ee30a6368686aad0406759f6770d24f31f5 Mon Sep 17 00:00:00 2001 From: aap Date: Fri, 19 Jul 2019 10:51:42 +0200 Subject: *cough* --- src/core/EventList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/EventList.cpp b/src/core/EventList.cpp index a03d7a42..a833cc8e 100644 --- a/src/core/EventList.cpp +++ b/src/core/EventList.cpp @@ -175,7 +175,7 @@ CEventList::FindClosestEvent(eEventType type, CVector posn, int32 *event) float mindist = 60.0f; for(i = 0; i < NUMEVENTS; i++){ - if(gaEvent[i].type == type) + if(gaEvent[i].type != type) continue; dist = (posn - gaEvent[i].posn).Magnitude(); if(dist < mindist){ -- cgit v1.2.3