From 25450db007b6d138531dbefcdb583ea2fd153de6 Mon Sep 17 00:00:00 2001 From: KorGgenT Date: Sun, 15 Mar 2020 00:52:39 -0400 Subject: [PATCH] debugmsg in parent_item() --- src/item_location.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/item_location.cpp b/src/item_location.cpp index c2ed35a9eb217..e8028f775aa2f 100644 --- a/src/item_location.cpp +++ b/src/item_location.cpp @@ -676,7 +676,8 @@ item_location item_location::parent_item() const if( where() == type::container ) { return ptr->parent_item(); } - return *this; + debugmsg( "this item location type has no parent" ); + return item_location::nowhere; } item_location::type item_location::where() const