From 237566f18f86de303fbf0640f2262e4beb967ef5 Mon Sep 17 00:00:00 2001 From: Iliyas Jorio Date: Thu, 3 Feb 2022 01:06:57 +0100 Subject: [PATCH] Fix read prefs from old version --- src/prefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prefs.cpp b/src/prefs.cpp index 3e6e404..b1e2eb3 100644 --- a/src/prefs.cpp +++ b/src/prefs.cpp @@ -60,7 +60,7 @@ void LoadPrefs() for (Preference& pref: prefList) { stream.seekg(0, std::ios::beg); - while (!stream.eof()) + while (stream.good() && !stream.eof()) { int keyLength; char key[256];