Skip to content

Commit

Permalink
Fix compile error from backporting #47253 Unlimited map memory
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong authored and ZhilkinSerg committed Nov 27, 2021
1 parent 67c9272 commit ac38b1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cata_tiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1121,12 +1121,12 @@ void cata_tiles::draw( const point &dest, const tripoint &center, int width, int
// so that new tiles can be memorized, and at least the size of the display
// since at farthest zoom displayed area may be bigger than view range.
const point min_mm_reg = point(
std::min( o.x, min_visible.x ),
std::min( o.y, min_visible.y )
std::min( o.x, min_visible_x ),
std::min( o.y, min_visible_y )
);
const point max_mm_reg = point(
std::max( s.x + o.x, max_visible.x ),
std::max( s.y + o.y, max_visible.y )
std::max( s.x + o.x, max_visible_x ),
std::max( s.y + o.y, max_visible_y )
);
you.prepare_map_memory_region(
here.getabs( tripoint( min_mm_reg, center.z ) ),
Expand Down

0 comments on commit ac38b1e

Please sign in to comment.