From e4599ee2d132a57253a7c52917ff107e06040946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 30 Jan 2019 01:12:21 +0100 Subject: [PATCH] NOISSUE fix builds? --- api/logic/minecraft/gameoptions/GameOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }