Skip to content

Commit

Permalink
Merge pull request CleverRaven#68521 from Kamayana/require_vp_for_spi…
Browse files Browse the repository at this point in the history
…ll_warning

Only show dropped bucket spill warning if dropping into vehicle
  • Loading branch information
Maleclypse authored Oct 6, 2023
2 parents 88ed29d + c934c2b commit ab63507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/character_inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ void Character::drop( const drop_locations &what, const tripoint &target,
const tripoint placement = target - pos();
std::vector<drop_or_stash_item_info> items;
for( drop_location item_pair : what ) {
if( is_avatar() && item_pair.first->is_bucket_nonempty() &&
if( is_avatar() && vp.has_value() && item_pair.first->is_bucket_nonempty() &&
!query_yn( _( "The %s would spill if stored there. Remove its contents first?" ),
item_pair.first->tname() ) ) {
continue;
Expand Down

0 comments on commit ab63507

Please sign in to comment.