[nostalgia/world] Fix sign conversion
This commit is contained in:
parent
4694bb9dd7
commit
9b84d9d8e0
@ -37,7 +37,7 @@ void Zone::draw(Context *ctx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::size_t Zone::size() {
|
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) {
|
Tile *Zone::tile(int x, int y) {
|
||||||
|
Loading…
Reference in New Issue
Block a user