From 10b9d41d577005f926feef4232b738ec10fb1670 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 6 Aug 2022 09:15:47 +0200 Subject: [PATCH] -forgot to save this... --- source/core/updatesector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/updatesector.h b/source/core/updatesector.h index cb1cc713c..1408a8ab1 100644 --- a/source/core/updatesector.h +++ b/source/core/updatesector.h @@ -42,7 +42,7 @@ void DoUpdateSector(double x, double y, double z, int* sectnum, double maxDistan { double maxDistSq = maxDistance * maxDistance; - if (validSectorIndex(sectnum)) + if (validSectorIndex(*sectnum)) { if (checker(x, y, z, §or[*sectnum])) return;