From bd65e2a3e02a760be85132c729c596f8c4f7367c Mon Sep 17 00:00:00 2001 From: jove Date: Fri, 3 Nov 2023 21:41:21 +0000 Subject: [PATCH] Fix crash in inventory dumping --- src/inventory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/inventory.cpp b/src/inventory.cpp index ac57b9613bd4..f88a0187ba61 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -815,6 +815,7 @@ void location_inventory::dump_remove( std::vector> &dest ) dest.push_back( detached_ptr( elem_stack_iter ) ); } } + inv.clear(); } std::vector> location_inventory::dump_remove( )