Skip to content

Commit dc7e7fe

Browse files
committed
Do not parse last line of banlist.txt twice
1 parent c4fe139 commit dc7e7fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

game_patch/multi/multi_ban.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ class Banlist
125125
{
126126
std::ifstream f("banlist.txt");
127127
std::string line;
128-
while (f) {
129-
std::getline(f, line);
128+
while (std::getline(f, line)) {
130129
// Ignore empty lines and comments
131130
if (line.empty() || string_starts_with(line, "#") || string_starts_with(line, "//")) {
132131
continue;

0 commit comments

Comments
 (0)