str("") is unsafe on its own for clearing stream

This commit is contained in:
2025-04-20 19:21:02 -05:00
parent a2f4c8a903
commit 58107f1856
15 changed files with 37 additions and 32 deletions

View File

@@ -799,7 +799,7 @@ void display_party() {
win_draw_string(mainPtr(),dest_rect,to_draw.str(),eTextMode::WRAP,style);
dest_rect = pc_race_rect;
dest_rect.offset(0,-14);
to_draw.str("");
clear_sstr(to_draw);
to_draw << " Food: " << univ.party.food;
win_draw_string(mainPtr(),dest_rect,to_draw.str(),eTextMode::WRAP,style);
}