diff --git a/server/CConfig.cpp b/server/CConfig.cpp index 4d82366d..167db361 100644 --- a/server/CConfig.cpp +++ b/server/CConfig.cpp @@ -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); }