diff --git a/src/Main.cpp b/src/Main.cpp index 879fe3c..29b03bd 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -72,8 +72,8 @@ class Block { } std::vector get_tiles() { std::vectortiles = {}; - for (int y = 0; y < 2; y++) { - for (int x = 0; x < 4; x++) { + for (int y = 0; y < type->grid.size(); y++) { + for (int x = 0; x < type->grid[y].size(); x++) { if (!type->grid[y][x]) { continue; }