fix handling of uncleared after-string data from psobb

This commit is contained in:
Martin Michelsen
2022-05-12 11:54:58 -07:00
parent 44989c08fe
commit ce075b4123
+1 -3
View File
@@ -423,9 +423,7 @@ struct ptext : parray<CharT, Count> {
}
operator std::basic_string<CharT>() const {
std::basic_string<CharT> ret(this->items, Count);
strip_trailing_zeroes(ret);
return ret;
return std::basic_string<CharT>(this->items, this->len());
}
bool empty() const {