[nostalgia/world] Fix sign conversion

This commit is contained in:
Gary Talent 2020-04-16 23:50:30 -05:00
parent 4694bb9dd7
commit 9b84d9d8e0

View File

@ -37,7 +37,7 @@ void Zone::draw(Context *ctx) {
}
std::size_t Zone::size() {
return sizeof(Zone) + m_bounds.width * m_bounds.height * sizeof(Tile);
return sizeof(Zone) + static_cast<std::size_t>(m_bounds.width * m_bounds.height) * sizeof(Tile);
}
Tile *Zone::tile(int x, int y) {