diff options
Diffstat (limited to 'native/src/proximity_info.cpp')
-rw-r--r-- | native/src/proximity_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/proximity_info.cpp b/native/src/proximity_info.cpp index 5f2d09f5c..102123c3c 100644 --- a/native/src/proximity_info.cpp +++ b/native/src/proximity_info.cpp @@ -42,7 +42,7 @@ ProximityInfo::~ProximityInfo() { } inline int ProximityInfo::getStartIndexFromCoordinates(const int x, const int y) const { - return (y / CELL_HEIGHT) * GRID_WIDTH + (x / CELL_WIDTH) + return ((y / CELL_HEIGHT) * GRID_WIDTH + (x / CELL_WIDTH)) * MAX_PROXIMITY_CHARS_SIZE; } |