Merge pull request #1286 from EQEmu/bug_fix/petonspawn_copypasteerror

Fix copy and paste error
This commit is contained in:
Michael Cook (mackal) 2021-03-06 20:09:12 -05:00 committed by GitHub
commit d5d6b911b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2271,7 +2271,7 @@ void NPC::PetOnSpawn(NewSpawn_Struct* ns)
if(client)
{
SetPetOwnerClient(true);
std::string tmp_lastname = swarmOwner->GetName();
std::string tmp_lastname = client->GetName();
tmp_lastname += "'s Pet";
if (tmp_lastname.size() < sizeof(ns->spawn.lastName))
strn0cpy(ns->spawn.lastName, tmp_lastname.c_str(), sizeof(ns->spawn.lastName));