Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
Fixed logic error encountered during url prefs load after number of s…
Browse files Browse the repository at this point in the history
…creen changes. Hopefully correctly this time.
  • Loading branch information
MarkWhybird committed Nov 16, 2017
1 parent 6e94f1a commit 5f7852f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PreferencesManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ private T LoadPrefByScreen<T>(int screenNum, string prefBaseName, string primary
// look for the non-screen-specific pref setting, and if found, move it from there.
// This is a one-off preferences upgrade.

if (Screen.AllScreens.Length == 1 || Screen.AllScreens.Length >= screenNum && Screen.AllScreens[screenNum].Primary)
if (Screen.AllScreens.Length == 1 || (screenNum < Screen.AllScreens.Length && Screen.AllScreens[screenNum].Primary))
{
if (reg.GetValueNames().Contains(prefBaseName))
{
Expand Down

0 comments on commit 5f7852f

Please sign in to comment.