Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
GA Inspector null fix improves
Browse files Browse the repository at this point in the history
  • Loading branch information
vhnunes committed Mar 23, 2022
1 parent 0770fc8 commit 4671867
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ public override void OnInspectorGUI()
string beforeGameKey = ga.GetGameKey(i);
string tmpGameKey = EditorGUILayout.TextField("", ga.GetGameKey(i));

if (!tmpGameKey.Equals(beforeGameKey) && beforeGameKey != null)
if (beforeGameKey != null && !tmpGameKey.Equals(beforeGameKey))
{
ga.SelectedPlatformOrganization[i] = "";
ga.SelectedPlatformStudio[i] = "";
Expand All @@ -843,7 +843,7 @@ public override void OnInspectorGUI()
string beforeSecretKey = ga.GetSecretKey(i);
string tmpSecretKey = EditorGUILayout.TextField("", ga.GetSecretKey(i));

if (!tmpSecretKey.Equals(beforeSecretKey) && beforeSecretKey != null)
if (beforeSecretKey != null && !tmpSecretKey.Equals(beforeSecretKey))
{
ga.SelectedPlatformOrganization[i] = "";
ga.SelectedPlatformStudio[i] = "";
Expand Down

0 comments on commit 4671867

Please sign in to comment.