Skip to content

Commit

Permalink
debugmsg in parent_item()
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed Mar 15, 2020
1 parent b8d1445 commit 25450db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/item_location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25450db

Please sign in to comment.