Some misc fixes

This commit is contained in:
hondacrx
2022-10-03 10:22:04 -04:00
parent 43ea6fbaa1
commit 10302a3ceb
3 changed files with 4 additions and 6 deletions
@@ -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);
-4
View File
@@ -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;
+3 -1
View File
@@ -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();
});
}