diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/logic/minecraft/gameoptions/GameOptions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<GameOptionItem> &contents, int & vers while(!file.atEnd()) { auto line = file.readLine(); - if(line.back() == '\n') + if(line.endsWith('\n')) { line.chop(1); } |