diff --git a/src/map_extras.cpp b/src/map_extras.cpp index 86fc8e1d52f85..17f9886aab677 100644 --- a/src/map_extras.cpp +++ b/src/map_extras.cpp @@ -79,7 +79,6 @@ static const item_group_id Item_spawn_data_trash_cart( "trash_cart" ); static const itype_id itype_223_casing( "223_casing" ); static const itype_id itype_762_51_casing( "762_51_casing" ); -static const itype_id itype_9mm_casing( "9mm_casing" ); static const itype_id itype_acoustic_guitar( "acoustic_guitar" ); static const itype_id itype_ash( "ash" ); static const itype_id itype_bag_canvas( "bag_canvas" ); diff --git a/src/npcmove.cpp b/src/npcmove.cpp index 1cdb4c89874a2..72d98f909813d 100644 --- a/src/npcmove.cpp +++ b/src/npcmove.cpp @@ -606,7 +606,7 @@ void npc::assess_danger() } // being outnumbered is serious. Scale up your assessment if you're outnumbered. if( hostile_count > friendly_count ) { - assessment *= ( hostile_count / friendly_count ); + assessment *= ( hostile_count / static_cast( friendly_count ) ); } const auto handle_hostile = [&]( const Character & foe, float foe_threat,