Skip to content

Commit

Permalink
Update item_pocket.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed May 5, 2020
1 parent 876bd34 commit de34675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item_pocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ ret_val<item_pocket::contain_code> item_pocket::can_contain( const item &it ) co
// soft items also avoid the size limit
if( !it.made_of( LIQUID ) && !it.made_of( GAS ) &&
!it.is_soft() && data->max_item_volume &&
it.volume() > *data->max_item_volume ) {
it.base_volume() > *data->max_item_volume ) {
return ret_val<item_pocket::contain_code>::make_failure(
contain_code::ERR_TOO_BIG, _( "item too big" ) );
}
Expand Down

0 comments on commit de34675

Please sign in to comment.