Commit 3d005974 authored by louiz’'s avatar louiz’

Fix the assert on the height of the map

parent 6ee14485
......@@ -259,7 +259,7 @@ TileHeights Map::get_cell_heights(const unsigned int col, const unsigned int row
assert(col >= 0);
assert(row >= 0);
assert(col < this->get_width_in_tiles());
assert(row < this->get_height_in_tiles());
assert(row < this->get_height_in_tiles() * 2);
std::size_t index = (this->get_width_in_tiles() * row) + col;
return this->walking_map[index];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment