Skip to content

Commit

Permalink
Appease our clang overlords
Browse files Browse the repository at this point in the history
  • Loading branch information
Procyonae committed Jun 12, 2024
1 parent 443c972 commit f79d976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ std::map<const itype *, std::pair<int, int>> Single_item_creator::every_item_min
{
switch( type ) {
case S_ITEM: {
auto i = item::find_type( itype_id( id ) );
const itype *i = item::find_type( itype_id( id ) );
if( i->count_by_charges() ) {
// TODO: Not technically perfect for only charge_min/charge max and for ammo/liquids but Item_modifier::modify()'s logic is gross and I'd rather not try to replicate it perfectly as is
const int min_charges = modifier->charges.first == -1 ?
Expand Down

0 comments on commit f79d976

Please sign in to comment.