Merge pull request #343 from noudess/master

Made familiars persistent.
This commit is contained in:
Alex 2015-01-22 16:48:38 -08:00
commit 7bfc3a48a8

View File

@ -546,7 +546,7 @@ bool Client::Save(uint8 iCommitNow) {
m_pp.lastlogin = time(nullptr);
if (GetPet() && !GetPet()->IsFamiliar() && GetPet()->CastToNPC()->GetPetSpellID() && !dead) {
if (GetPet() && GetPet()->CastToNPC()->GetPetSpellID() && !dead) {
NPC *pet = GetPet()->CastToNPC();
m_petinfo.SpellID = pet->CastToNPC()->GetPetSpellID();
m_petinfo.HP = pet->GetHP();