ext/h3/src/src/apps/miscapps/generateBaseCellNeighbors.c in h3-3.5.1 vs ext/h3/src/src/apps/miscapps/generateBaseCellNeighbors.c in h3-3.6.0

- old
+ new

@@ -1,7 +1,7 @@ /* - * Copyright 2016-2018 Uber Technologies, Inc. + * Copyright 2016-2019 Uber Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * @@ -85,10 +85,10 @@ int baseCellNeighbors[NUM_BASE_CELLS][7]; int baseCellRotations[NUM_BASE_CELLS][7]; for (int i = 0; i < NUM_BASE_CELLS; i++) { if (!_isBaseCellPentagon(i)) { - for (int dir = 0; dir <= NUM_DIRS; dir++) { + for (int dir = CENTER_DIGIT; dir <= NUM_DIRS; dir++) { FaceIJK fijk; _baseCellToFaceIjk(i, &fijk); _neighbor(&fijk.coord, dir); // Should never happen, but just in case :)