tailor: add missing c_str() calls

develop
lethosor 2019-11-02 21:30:48 -04:00
parent bf4dec6c6a
commit 6a00510272
1 changed files with 3 additions and 3 deletions

@ -346,7 +346,7 @@ void do_scan(color_ostream& out)
if (!can_make) 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 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, order->id,
count, count,
bitfield_to_string(order->material_category), bitfield_to_string(order->material_category),
(count > 1) ? name_p : name_s, (count > 1) ? name_p.c_str() : name_s.c_str(),
world->raws.creatures.all[order->hist_figure_id]->name[1] world->raws.creatures.all[order->hist_figure_id]->name[1].c_str()
); );
} }
} }