КАП
This commit is contained in:
parent
2d1302758f
commit
414bc629e4
@ -206,8 +206,13 @@ namespace DiIiS_NA.LoginServer.AccountsSystem
|
||||
|
||||
public static Account GetAccountByDBAccount(DBAccount dbAccount)
|
||||
{
|
||||
if (dbAccount == null)
|
||||
return null;
|
||||
if (LoadedAccounts.ContainsKey(dbAccount.Id))
|
||||
{
|
||||
LoadedAccounts[dbAccount.Id].DBAccount = dbAccount;
|
||||
return LoadedAccounts[dbAccount.Id];
|
||||
}
|
||||
else
|
||||
{
|
||||
var account = new Account(dbAccount);
|
||||
|
||||
@ -40,8 +40,13 @@ namespace DiIiS_NA.LoginServer.AccountsSystem
|
||||
|
||||
public static GameAccount GetGameAccountByDBGameAccount(DBGameAccount dbGameAccount)
|
||||
{
|
||||
if (dbGameAccount == null)
|
||||
return null;
|
||||
if (LoadedGameAccounts.ContainsKey(dbGameAccount.Id))
|
||||
{
|
||||
LoadedGameAccounts[dbGameAccount.Id].DBGameAccount = dbGameAccount;
|
||||
return LoadedGameAccounts[dbGameAccount.Id];
|
||||
}
|
||||
else
|
||||
{
|
||||
var account = new GameAccount(dbGameAccount);
|
||||
|
||||
Loading…
Reference in New Issue
user.block.title