interesting_string() don't add . to empty
This commit is contained in:
@@ -179,7 +179,8 @@ std::string cItem::interesting_string() const {
|
||||
if(got_string) sout << "; ";
|
||||
sout << "Uses: " << charges;
|
||||
}
|
||||
sout << '.';
|
||||
if(!sout.str().empty())
|
||||
sout << '.';
|
||||
return sout.str();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user