Skip to content

Commit

Permalink
Fix compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
JLChnToZ authored and bdunderscore committed Mar 1, 2024
1 parent a97c8ba commit 6e54146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Editor/UI/Localization/Localizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ public bool TryGetLocalizedString(string key, out string value)
.Select(l => languages[l])
.ToList();

if (languages.TryGetValue(LanguagePrefs.Language, out var lookup))
if (languages.TryGetValue(LanguagePrefs.Language, out var currentLookup))
{
// Always try the exact match first
lookups.Insert(0, lookup);
lookups.Insert(0, currentLookup);
}

_lookupCache = k =>
Expand Down

0 comments on commit 6e54146

Please sign in to comment.