From 53081e178cf78468060baf60556528ca2cf3f58a Mon Sep 17 00:00:00 2001 From: Qrox Date: Sat, 3 Aug 2019 15:58:23 +0800 Subject: [PATCH] Also prevent items count by charge from stacking in the consume item menu --- src/inventory_ui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inventory_ui.cpp b/src/inventory_ui.cpp index e515b70d1f776..f952f04a2c2b5 100644 --- a/src/inventory_ui.cpp +++ b/src/inventory_ui.cpp @@ -1023,7 +1023,7 @@ static std::vector> restack_items( const std::list::cons for( auto it = from; it != to; ++it ) { auto match = std::find_if( res.begin(), res.end(), [ &it, check_components ]( const std::list &e ) { - return it->stacks_with( *const_cast( e.back() ), check_components ); + return it->display_stacked_with( *const_cast( e.back() ), check_components ); } ); if( match != res.end() ) { @@ -1045,7 +1045,7 @@ static std::vector> restack_items( const item_stack::const_ite for( auto it = from; it != to; ++it ) { auto match = std::find_if( res.begin(), res.end(), [ &it, check_components ]( const std::list &e ) { - return it->stacks_with( *const_cast( e.back() ), check_components ); + return it->display_stacked_with( *const_cast( e.back() ), check_components ); } ); if( match != res.end() ) {