Skip to content

Commit

Permalink
fix: emit debugmsg on capacity <= 0 (cataclysmbnteam#3424)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenAudeles authored Oct 14, 2023
1 parent 6d4ecee commit c24164e
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 @@ -5887,7 +5887,7 @@ int item::get_encumber_when_containing(
if( entry.max_encumber == 0 ) {
encumber += contents_volume / 500_ml;
} else {
if( capacity < 0 ) {
if( capacity <= 0 ) {
debugmsg( "Non-rigid item (%s) without storage capacity.", tname() );
} else {
// Cast up to 64 to prevent overflow. Dividing before would prevent this but lose data.
Expand Down

0 comments on commit c24164e

Please sign in to comment.