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