Skip to content

Commit

Permalink
Fix consumption of mixed ammo in magazines (#2004)
Browse files Browse the repository at this point in the history
  • Loading branch information
olanti-p authored Oct 19, 2022
1 parent 6d0c344 commit be865de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7369,7 +7369,7 @@ int item::ammo_consume( int qty, const tripoint &pos )
item &e = contents.front();
if( need >= e.charges ) {
need -= e.charges;
remove_item( contents.back() );
remove_item( contents.front() );
} else {
e.charges -= need;
need = 0;
Expand Down

0 comments on commit be865de

Please sign in to comment.