diff --git a/src/item.cpp b/src/item.cpp index 7b7495d6341c2..a84340fe887c9 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -5276,8 +5276,7 @@ units::volume item::volume( bool integral ) const } if( count_by_charges() || made_of( phase_id::LIQUID ) ) { - units::quantity num = ret * static_cast - ( charges ); + units::volume num = ret * static_cast( charges ); if( type->stack_size <= 0 ) { debugmsg( "Item type %s has invalid stack_size %d", typeId().str(), type->stack_size ); ret = num;