Skip to content

Commit

Permalink
Update SOArchitecturePreferences.cs
Browse files Browse the repository at this point in the history
Fix for bool pref always set/returned as true
  • Loading branch information
jeffcampbellmakesgames authored Nov 7, 2019
1 parent 12bfb10 commit 0fde089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/SO Architecture/SOArchitecturePreferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private static void DrawPersonalPrefsGUI(string value = "")
/// <returns></returns>
private static bool GetBoolPref(string key, bool defaultValue)
{
if (EditorPrefs.HasKey(key))
if (!EditorPrefs.HasKey(key))
{
EditorPrefs.SetBool(key, defaultValue);
}
Expand All @@ -184,4 +184,4 @@ private static bool GetBoolPref(string key, bool defaultValue)
}
}

#endif
#endif

0 comments on commit 0fde089

Please sign in to comment.