mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-11 22:25:53 +08:00
fixed stripping of comments from configuration streams.
This commit is contained in:
@@ -277,7 +277,7 @@ bool CConfig::readLine(std::istream& s, CString& line)
|
||||
s >> std::ws;
|
||||
while (std::getline(s, line)) {
|
||||
// strip comments and then trailing whitespace
|
||||
CString::size_type i = line.rfind('#');
|
||||
CString::size_type i = line.find('#');
|
||||
if (i != CString::npos) {
|
||||
line.erase(i);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user