Skip to content

Commit

Permalink
Work around for erroneous clang-tydy rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikLundell committed Jan 28, 2024
1 parent e75742c commit ff78a04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clzones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,9 @@ void mapgen_place_zone( tripoint const &start, tripoint const &end, zone_type_id
tripoint const s_ = std::min( start, end );
tripoint const e_ = std::max( start, end );
if( type == zone_type_LOOT_CUSTOM || type == zone_type_LOOT_ITEM_GROUP ) {
dynamic_cast<loot_options *>( &*options )->set_mark( filter );
if( dynamic_cast<loot_options *>( &*options ) != nullptr ) {
dynamic_cast<loot_options *>( &*options )->set_mark( filter );
}
}
mgr.add( name, type, fac, false, true, s_, e_, options, false, true, pmap );
}

0 comments on commit ff78a04

Please sign in to comment.