From cd162639ed50a3aa4fcec79d39ea59fd00741f3a Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 25 Aug 2013 21:48:43 +0200 Subject: [PATCH] Fix ridiculous bug that would ignore (and thus delete when resaved) the last line of ini files if it didn't end with a line break. --- file/ini_file.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/file/ini_file.cpp b/file/ini_file.cpp index dbe0e23e82..4da6e14b2c 100644 --- a/file/ini_file.cpp +++ b/file/ini_file.cpp @@ -454,8 +454,6 @@ bool IniFile::Load(std::istream &in) { } #endif - if (in.eof()) break; - if (line.size() > 0) { if (line[0] == '[')