From a100eb43f2024b096d80fdd79781125a0a1c3840 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Sun, 4 Aug 2024 10:24:47 +0200 Subject: [PATCH] fixed fallback --- src/item_location.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item_location.cpp b/src/item_location.cpp index ecca91eeaa147..ad86d6e5c4d3c 100644 --- a/src/item_location.cpp +++ b/src/item_location.cpp @@ -842,7 +842,7 @@ void item_location::deserialize( const JsonObject &obj ) obj.read( "parent", parent ); if( !parent.ptr->valid() ) { debugmsg( "parent location does not point to valid item" ); - ptr.reset( new impl::item_on_map( map_cursor( tripoint_bub_ms( pos ) ), idx ) ); // drop on ground + ptr.reset( new impl::item_on_map( map_cursor( parent.pos_bub() ), idx ) ); // drop on ground return; } const std::list parent_contents = parent->all_items_top();