Fix crash in SendEnterWorld on illegally long names

This commit is contained in:
Michael Cook (mackal)
2014-09-20 15:55:20 -04:00
parent 15eaf4e6d1
commit f82699c39b
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ void Client::SendLogServer()
void Client::SendEnterWorld(std::string name)
{
char char_name[32]= { 0 };
char char_name[64] = { 0 };
if (pZoning && database.GetLiveChar(GetAccountID(), char_name)) {
if(database.GetAccountIDByChar(char_name) != GetAccountID()) {
eqs->Close();