Some misc fixes
This commit is contained in:
@@ -67,7 +67,7 @@ namespace BNetServer.Networking
|
||||
if (accountInfo.LoginTicketExpiry < Time.UnixTime)
|
||||
return BattlenetRpcErrorCode.TimedOut;
|
||||
|
||||
stmt = DB.Login.GetPreparedStatement(LoginStatements.SelBnetCharacterCountsByAccountId);
|
||||
stmt = DB.Login.GetPreparedStatement(LoginStatements.SEL_BNET_CHARACTER_COUNTS_BY_BNET_ID);
|
||||
stmt.AddValue(0, accountInfo.Id);
|
||||
|
||||
SQLResult characterCountsResult = DB.Login.Query(stmt);
|
||||
|
||||
@@ -215,8 +215,6 @@ namespace BNetServer.Networking
|
||||
public uint LoginTicketExpiry;
|
||||
public bool IsBanned;
|
||||
public bool IsPermanenetlyBanned;
|
||||
public string PasswordVerifier;
|
||||
public string Salt;
|
||||
|
||||
public Dictionary<uint, GameAccountInfo> GameAccounts;
|
||||
|
||||
@@ -230,8 +228,6 @@ namespace BNetServer.Networking
|
||||
LoginTicketExpiry = result.Read<uint>(5);
|
||||
IsBanned = result.Read<ulong>(6) != 0;
|
||||
IsPermanenetlyBanned = result.Read<ulong>(7) != 0;
|
||||
PasswordVerifier = result.Read<string>(9);
|
||||
Salt = result.Read<string>(10);
|
||||
|
||||
GameAccounts = new Dictionary<uint, GameAccountInfo>();
|
||||
const int GameAccountFieldsOffset = 8;
|
||||
|
||||
@@ -530,7 +530,7 @@ namespace Game
|
||||
{
|
||||
// Player not create (race/class/etc problem?)
|
||||
newChar.CleanupsBeforeDelete();
|
||||
|
||||
newChar.Dispose();
|
||||
SendCharCreate(ResponseCodes.CharCreateError);
|
||||
return;
|
||||
}
|
||||
@@ -567,6 +567,8 @@ namespace Game
|
||||
}
|
||||
else
|
||||
SendCharCreate(ResponseCodes.CharCreateError);
|
||||
|
||||
newChar.Dispose();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user