diff --git a/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp b/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp index 3dbb780a6e..558609ad96 100644 --- a/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp +++ b/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp @@ -550,9 +550,9 @@ std::pair RectGridGeom::getCellBounds(usize x, usize y, usiz const auto& zBnds = getZBoundsRef(); Point3Df minCoords; - minCoords[0] = static_cast((*xBnds)[x]); - minCoords[1] = static_cast((*yBnds)[y]); - minCoords[2] = static_cast((*zBnds)[z]); + minCoords[0] = static_cast(xBnds[x]); + minCoords[1] = static_cast(yBnds[y]); + minCoords[2] = static_cast(zBnds[z]); Point3Df maxCoords; maxCoords[0] = (*xBnds)[x + 1];