diff --git a/src/avatar_action.cpp b/src/avatar_action.cpp index 26edfdb7f602b..ab3d957973609 100644 --- a/src/avatar_action.cpp +++ b/src/avatar_action.cpp @@ -242,7 +242,7 @@ bool avatar_action::move( avatar &you, map &m, const tripoint_rel_ms &d ) get_option( "AUTO_FEATURES" ) && get_option( "AUTO_MINING" ) && !m.veh_at( dest_loc ) && !you.is_underwater() && !you.has_effect( effect_stunned ) && !you.has_effect( effect_psi_stunned ) && !is_riding && !you.has_effect( effect_incorporeal ) && - !m.impassable_field_at( d ) ) { + !m.impassable_field_at( d.raw() ) ) { if( weapon && weapon->has_flag( flag_DIG_TOOL ) ) { if( weapon->type->can_use( "JACKHAMMER" ) && weapon->ammo_sufficient( &you ) ) {