Skip to content

Commit

Permalink
Fix read prefs from old version
Browse files Browse the repository at this point in the history
  • Loading branch information
jorio committed Feb 3, 2022
1 parent d5c86a4 commit 237566f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 237566f

Please sign in to comment.