From 0b7b22df7e490f8babc8479e55f4bc6f418b0748 Mon Sep 17 00:00:00 2001 From: Antz Date: Tue, 7 Jan 2020 22:14:54 +0000 Subject: [PATCH] Fix some compiler warnings and project sync --- src/game/WorldHandlers/CellImpl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/WorldHandlers/CellImpl.h b/src/game/WorldHandlers/CellImpl.h index dbd36644..99f637e2 100644 --- a/src/game/WorldHandlers/CellImpl.h +++ b/src/game/WorldHandlers/CellImpl.h @@ -108,11 +108,11 @@ Cell::Visit(const CellPair& standing_cell, TypeContainerVisitor &v m.Visit(*this, visitor); // loop the cell range - for (uint32 i = begin_cell.x_coord; i <= end_cell.x_coord; ++i) + for (uint32 loopX = begin_cell.x_coord; loopX <= end_cell.x_coord; ++loopX) { - for (uint32 j = begin_cell.y_coord; j <= end_cell.y_coord; ++j) + for (uint32 loopY = begin_cell.y_coord; loopY <= end_cell.y_coord; ++loopY) { - CellPair cell_pair(i, j); + CellPair cell_pair(loopX, loopY); // lets skip standing cell since we already visited it if (cell_pair != standing_cell) {