Fixes creating new account.

This commit is contained in:
hondacrx
2024-02-22 16:45:38 -05:00
parent ae2c3c18c8
commit 41e228be3c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ namespace Game
if (withGameAccount)
{
gameAccountName = newAccountId + "#1";
string gameAccountPassword = password.Substring(0, 16);
string gameAccountPassword = password.Substring(0, Math.Min(16, password.Length));
Global.AccountMgr.CreateAccount(gameAccountName, gameAccountPassword.ToUpper(), email, newAccountId, 1);
}