Skip to content

Commit

Permalink
fix: Fix compiling (#1617)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman authored Nov 26, 2023
1 parent 674b8dc commit 332e22f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Projects/UOContent/Accounting/AccountHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public static void EventSink_GameLogin(GameLoginEventArgs e)
logger.Information("Login: {NetState} Account '{Username}' at character list", e.State, un);
e.State.Account = acct;
e.Accepted = true;
e.CityInfo = CharacterCreation.GetStartingCities(acct);
e.CityInfo = CharacterCreation.GetStartingCities(acct.Young);
}

if (!e.Accepted)
Expand Down
4 changes: 2 additions & 2 deletions Projects/UOContent/Misc/CharacterCreation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ public static class CharacterCreation

private static CityInfo[] _availableStartingCities;

public static CityInfo[] GetStartingCities(Account acct)
public static CityInfo[] GetStartingCities(bool isYoung)
{
if (acct.Young && ExpansionInfo.CoreExpansion.MapSelectionFlags.Includes(MapSelectionFlags.Trammel))
if (isYoung && ExpansionInfo.CoreExpansion.MapSelectionFlags.Includes(MapSelectionFlags.Trammel))
{
return TileMatrix.Pre6000ClientSupport ? OldHavenBank : NewHavenInn;
}
Expand Down

0 comments on commit 332e22f

Please sign in to comment.