From dec3cecfdbd1dc365a430a66ecda0d221d2aa6cc Mon Sep 17 00:00:00 2001 From: Aleksey Lobanov Date: Sun, 7 Jun 2015 18:19:56 +0300 Subject: [PATCH] Fixed numbering of words in grid. Now it's normal numbering --- src/crossgen.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crossgen.hpp b/src/crossgen.hpp index bc7ba71..d85d58f 100644 --- a/src/crossgen.hpp +++ b/src/crossgen.hpp @@ -58,8 +58,8 @@ void generateWordInfo(GridType &grid, std::vector &winfos){ } size_t cur_ind = 1; bool exist = false; - for (size_t i = 0; i < grid.size(); ++i){ - for (size_t j = 0; j < grid.at(0).size(); ++j){ + for (size_t j = 0; j < grid.at(0).size(); ++j){ + for (size_t i = 0; i < grid.size(); ++i){ if (grid.at(i).at(j) == CELL_CLEAR){ if (((j == 0) || (grid.at(i).at(j - 1) != CELL_CLEAR)) && (j != grid.at(0).size() - 1))