Skip to content

Commit

Permalink
hotkey_handler: use accessors instead of friend access for gamemap
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Dec 22, 2014
1 parent db12a48 commit ec22a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotkey_handler.cpp
Expand Up @@ -460,8 +460,8 @@ bool play_controller::hotkey_handler::in_context_menu(hotkey::HOTKEY_COMMAND com

// A quick check to save us having to create the future map and
// possibly loop through all units.
if ( !gamestate_.board_.map().is_keep(last_hex) &&
!gamestate_.board_.map().is_castle(last_hex) )
if ( !play_controller_.get_map_const().is_keep(last_hex) &&
!play_controller_.get_map_const().is_castle(last_hex) )
return false;

wb::future_map future; /* lasts until method returns. */
Expand Down

0 comments on commit ec22a86

Please sign in to comment.