From 6a005102728f1f284f7a743240da472159de01a8 Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 2 Nov 2019 21:30:48 -0400 Subject: [PATCH] tailor: add missing c_str() calls --- plugins/tailor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/tailor.cpp b/plugins/tailor.cpp index d59316677..a9dc14750 100644 --- a/plugins/tailor.cpp +++ b/plugins/tailor.cpp @@ -346,7 +346,7 @@ void do_scan(color_ostream& out) if (!can_make) { - out.print("Cannot make %s, skipped\n", name_p); + out.print("Cannot make %s, skipped\n", name_p.c_str()); continue; // this civilization does not know how to make this item, so sorry } @@ -399,8 +399,8 @@ void do_scan(color_ostream& out) order->id, count, bitfield_to_string(order->material_category), - (count > 1) ? name_p : name_s, - world->raws.creatures.all[order->hist_figure_id]->name[1] + (count > 1) ? name_p.c_str() : name_s.c_str(), + world->raws.creatures.all[order->hist_figure_id]->name[1].c_str() ); } }