diff --git a/src/sdltiles.cpp b/src/sdltiles.cpp index 53a2d83f0ed1..0858a71c34a0 100644 --- a/src/sdltiles.cpp +++ b/src/sdltiles.cpp @@ -51,6 +51,7 @@ #include "input.h" #include "runtime_handlers.h" #include "json.h" +#include "make_static.h" #include "mapbuffer.h" #include "mission.h" #include "npc.h" @@ -2765,7 +2766,8 @@ static void CheckMessages() actions.insert( ACTION_CYCLE_MOVE ); } // Only prioritize fire weapon options if we're wielding a ranged weapon. - if( g->u.primary_weapon().is_gun() || g->u.primary_weapon().has_flag( "REACH_ATTACK" ) ) { + if( g->u.primary_weapon().is_gun() || + g->u.primary_weapon().has_flag( STATIC( flag_id( "REACH_ATTACK" ) ) ) ) { actions.insert( ACTION_FIRE ); } }