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;