From c884a955cb028992f9dfdc3d591e8f18e2d212d0 Mon Sep 17 00:00:00 2001 From: John Bytheway Date: Sat, 1 Dec 2018 21:23:08 +0000 Subject: [PATCH] Use the correct memory according to build type The TILES and CURSES memory are separate things. We were using the TILES memory for both types of build. Instead, use the appropriate one. --- src/map.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map.cpp b/src/map.cpp index da714fd7fb844..eb133c7323b06 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1345,7 +1345,11 @@ uint8_t map::get_known_connections( const tripoint &p, int connect_group ) const uint8_t val = 0; auto const is_memorized = [&]( const tripoint & q ) { +#ifdef TILES return !g->u.get_memorized_tile( getabs( q ) ).tile.empty(); +#else + return g->u.get_memorized_symbol( getabs( q ) ); +#endif }; // populate connection information