From 8eb49e601d8946705fdd2785638be1ef268a7cb4 Mon Sep 17 00:00:00 2001 From: mqrause Date: Sun, 7 Feb 2021 18:11:41 +0100 Subject: [PATCH] simplify type --- src/item.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;