diff --git a/api/logic/minecraft/gameoptions/GameOptions.cpp b/api/logic/minecraft/gameoptions/GameOptions.cpp index 5dab8b86..e547b32a 100644 --- a/api/logic/minecraft/gameoptions/GameOptions.cpp +++ b/api/logic/minecraft/gameoptions/GameOptions.cpp @@ -17,7 +17,7 @@ bool load(const QString& path, std::vector &contents, int & vers while(!file.atEnd()) { auto line = file.readLine(); - if(line.back() == '\n') + if(line.endsWith('\n')) { line.chop(1); }