Skip to content

Commit

Permalink
fix debug message when trying to pick up an item you can pick up
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed May 6, 2020
1 parent 4a1b2c2 commit a3b0747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pickup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ bool pick_one_up( item_location &loc, int quantity, bool &got_water, bool &offer

bool did_prompt = false;
if( newit.count_by_charges() ) {
newit.charges = u.i_add_to_container( newit, false );
newit.charges -= u.i_add( newit ).charges;
}
if( newit.is_ammo() && newit.charges == 0 ) {
if( newit.is_ammo() && newit.charges <= 0 ) {
picked_up = true;
option = NUM_ANSWERS; //Skip the options part
} else if( newit.is_frozen_liquid() ) {
Expand Down

0 comments on commit a3b0747

Please sign in to comment.