From 5967e5c9e04e2824268051bbd0242f19b0244f71 Mon Sep 17 00:00:00 2001 From: myk002 Date: Sun, 20 Nov 2022 16:03:08 -0800 Subject: [PATCH] fix up cleanowned status message print unit id instead of raw pointer and display "wear level" instead of just "wear" --- plugins/cleanowned.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/cleanowned.cpp b/plugins/cleanowned.cpp index 387dfdd92..86ef0a2e1 100644 --- a/plugins/cleanowned.cpp +++ b/plugins/cleanowned.cpp @@ -147,8 +147,8 @@ command_result df_cleanowned (color_ostream &out, vector & parameters) std::string description; item->getItemDescription(&description, 0); out.print( - "%p %s (wear %d)", - item, + "[%d] %s (wear level %d)", + item->id, description.c_str(), item->getWear() );