Skip to content

Commit

Permalink
fix mag reloading (item migration)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed Dec 30, 2019
1 parent be72d79 commit 4c686ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7204,8 +7204,8 @@ bool item::reload( player &u, item_location loc, int qty )
to_reload.charges = qty;
ammo->charges -= qty;
bool merged = false;
for( item &it : contents.all_items() ) {
if( it.merge_charges( to_reload ) ) {
for( item *it : contents.all_items_ptr() ) {
if( it->merge_charges( to_reload ) ) {
merged = true;
break;
}
Expand Down

0 comments on commit 4c686ef

Please sign in to comment.