mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 02:52:26 +00:00
Merge pull request #1286 from EQEmu/bug_fix/petonspawn_copypasteerror
Fix copy and paste error
This commit is contained in:
commit
d5d6b911b0
@ -2271,7 +2271,7 @@ void NPC::PetOnSpawn(NewSpawn_Struct* ns)
|
|||||||
if(client)
|
if(client)
|
||||||
{
|
{
|
||||||
SetPetOwnerClient(true);
|
SetPetOwnerClient(true);
|
||||||
std::string tmp_lastname = swarmOwner->GetName();
|
std::string tmp_lastname = client->GetName();
|
||||||
tmp_lastname += "'s Pet";
|
tmp_lastname += "'s Pet";
|
||||||
if (tmp_lastname.size() < sizeof(ns->spawn.lastName))
|
if (tmp_lastname.size() < sizeof(ns->spawn.lastName))
|
||||||
strn0cpy(ns->spawn.lastName, tmp_lastname.c_str(), sizeof(ns->spawn.lastName));
|
strn0cpy(ns->spawn.lastName, tmp_lastname.c_str(), sizeof(ns->spawn.lastName));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user